Skip to content

Conversation

@Harriethw
Copy link
Contributor

this makes it easier to format and pass in variables than one long string.
Outlook, the NHS email service provide, should always support HTML in emails.

(exact copy of emails is still pending)

Description

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-11003

Review notes

decoded_attachment_data = base64.b64encode(csv_data.encode("utf-8")).decode(
"utf-8"
decoded_attachment_data = (
mime_message.get_payload()[1] # type: ignore
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really delving deep into the complexities of email types... happy to take any suggestions if there's a simpler way of decoding 😅

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably lacking a bit of context here but there's an iter_attachments method on email.message which might be a cleaner way to obtain the right part. Given this is a test I wouldn't be too concerned about the current code though.

@Harriethw Harriethw force-pushed the DTOSS-11003-email-content branch from 693cca0 to b81cc1c Compare October 16, 2025 16:24
@Harriethw Harriethw marked this pull request as ready for review October 16, 2025 16:24
@Harriethw Harriethw requested a review from a team October 16, 2025 16:24
@Harriethw Harriethw force-pushed the DTOSS-11003-email-content branch from b81cc1c to a9a0393 Compare October 17, 2025 14:26
Copy link
Contributor

@cameronhargreaves1-nhs cameronhargreaves1-nhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice changes on this! 🔥

this makes it easier to format and pass in variables
than one long string.
Outlook, the NHS email service provide, should always support
HTML in emails.
@Harriethw Harriethw force-pushed the DTOSS-11003-email-content branch from a9a0393 to 3023168 Compare October 24, 2025 10:25
@Harriethw Harriethw merged commit 0075389 into main Oct 24, 2025
12 checks passed
@Harriethw Harriethw deleted the DTOSS-11003-email-content branch October 24, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants