We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using MailjetBackend with the following Django code:
MailjetBackend
email = EmailMessage(subject, message, from_email, recipients) email.content_subtype = 'html' email.send()
... where message contains some HTML tags is sending to the recipient(s) a plain text mail, where the HTML is not interpreted.
message
Attaching two alternatives (plain & html) works though, but since the code above is documented as official part of the Django API, I think it should be handled.
EDIT: I should mention this method worked with another competitor backend before 😕
The text was updated successfully, but these errors were encountered:
For information (and those who might be blocked by this), it is possible to workaround this problem by using the following method:
from django.core.mail import EmailMultiAlternatives mail = EmailMultiAlternatives( "Subject", "Plain text message", "[email protected]", "[email protected]" ) mail.attach_alternative("HTML message", 'text/html') mail.send()
Thus, mail provider seems to prefer displaying the HTML version instead of the plain one.
Sorry, something went wrong.
kidig
No branches or pull requests
Using
MailjetBackend
with the following Django code:... where
message
contains some HTML tags is sending to the recipient(s) a plain text mail, where the HTML is not interpreted.Attaching two alternatives (plain & html) works though, but since the code above is documented as official part of the Django API, I think it should be handled.
EDIT: I should mention this method worked with another competitor backend before 😕
The text was updated successfully, but these errors were encountered: