Plain text emails from dynamic templates
See original GitHub issueHi,
It might be not an issue of this library, however, I would like to post this information in case someone else would run into similar issues. Today we noticed that our HTML dynamic template emails were sent out as plain text. We correlated the issue with the recent change on the Sendgrid side.
Out fix was to set content type explicitly
email = EmailMessage(from_email=email_from, to=[to])
# <<<
email.content_subtype = 'html'
# >>>
email.dynamic_template_data = ...
email.send(fail_silently=False)
Thanks, Hena
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Classic email builder plain text template
Learn how you can design a plain text template in Omnisend. ... HTML emails, may not only enhance your emails with dynamic content...
Read more >Dynamic sendgrid templates being sent as plain text
Given that dynamic templates contain both HTML and plain text content, text should not be passed when using a dynamic template.
Read more >How to Send an Email with Dynamic Templates
Before you begin. Before you create and send an email using a dynamic template, you need to do the following: Create a SendGrid...
Read more >Dynamic Email Templates - MailerSend
Create dynamic emails with text/HTML. Skip the templates and write your own text/HTML dynamic emails to send via API call or SMTP. Easily...
Read more >HTML vs Plain Text Email: Which Works Better in 2023?
Plain text emails are plain while HTML emails are super attractive. Learn in detail about the better email format for your email campaign....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll take a look at this over the weekend and maybe I can come up with a fix that makes sense
Having the same issue as well, sending it through the Email API works fine but when sending it through our platform which uses this library it also sends emails as plain text, thanks for opening this!