I am using Django 1.8.7 and Django-post-office to send mails with attachment (for instance, one pdf file "test.pdf").
1) Strangely when a mail is sent with an attachment and an HTML_CONTENT (eg "Hello World"), the mail is empty, except the file which is correctly attached. This HTML_CONTENT does not contain html syntax (for testing purpose, such as <strong> </strong>), to keep it very simple.
2) When the mail is sent with same attachment and a (simple) CONTENT (eg "Hello World"), the mail is correctly rendered, with the file correctly attached
3) when the mail is sent with no attachment and an HTML_CONTENT (eg "Hello World"), the mail is correctly rendered (ie, mail is not empty).
So pb is that it is not possible to send mails with attachements and html_content : mail is empty (but file is correctly attached).
Has someone already encountered this behaviour with django-post-office ? Thks.
-- 1) Strangely when a mail is sent with an attachment and an HTML_CONTENT (eg "Hello World"), the mail is empty, except the file which is correctly attached. This HTML_CONTENT does not contain html syntax (for testing purpose, such as <strong> </strong>), to keep it very simple.
2) When the mail is sent with same attachment and a (simple) CONTENT (eg "Hello World"), the mail is correctly rendered, with the file correctly attached
3) when the mail is sent with no attachment and an HTML_CONTENT (eg "Hello World"), the mail is correctly rendered (ie, mail is not empty).
So pb is that it is not possible to send mails with attachements and html_content : mail is empty (but file is correctly attached).
Has someone already encountered this behaviour with django-post-office ? Thks.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/99e3ebdc-2fd6-47d9-a072-1d40a48f4258%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment