Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mail: Email deliverability: Set the text part #360

Open
jpmckinney opened this issue Aug 16, 2024 · 2 comments
Open

mail: Email deliverability: Set the text part #360

jpmckinney opened this issue Aug 16, 2024 · 2 comments
Labels
enhancement New feature or request topic: email Relating to email templates or sending
Milestone

Comments

@jpmckinney
Copy link
Member

AFAIK, we presently only set the HtmlPart (the templates don't have a TextPart).

Emails with only HTML parts can be marked as spam (e.g. https://glockapps.com/blog/10-tips-to-avoid-spam-folder/)

@jpmckinney jpmckinney added the enhancement New feature or request label Aug 16, 2024
@jpmckinney jpmckinney added this to the Priority milestone Aug 16, 2024
@jpmckinney jpmckinney changed the title Email deliverability: Set the text part SES: Email deliverability: Set the text part Aug 16, 2024
@jpmckinney jpmckinney changed the title SES: Email deliverability: Set the text part mail: Email deliverability: Set the text part Aug 16, 2024
@yolile
Copy link
Member

yolile commented Aug 16, 2024

What do you suggest to put as TextPart?

@jpmckinney
Copy link
Member Author

jpmckinney commented Aug 16, 2024

Probably the same content with the same {{VAR}} tags, split into paragraphs. Basically, the same without HTML.

One idea is to write a command to strip the HTML to autogenerate these files (there's probably a library to do it).

We can then double-check that the text looks OK, and this will make it easier to keep them in sync going forward.

Edit: and we probably want to use the textwrap module to have reasonably short line lengths.

@jpmckinney jpmckinney added the topic: email Relating to email templates or sending label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request topic: email Relating to email templates or sending
Projects
None yet
Development

No branches or pull requests

2 participants