Ask Your Question

Why are emails being sent out as text and not html with post-office as backend?

asked 2013-06-01 03:01:24 -0500

FranciscoD's avatar

We've recently set up askbot to use python-django-post_office as the email backend at askfedora. I've noticed that the emails we're getting are now plain text, and not html as they used to be.

post-office seems to have two different variables for plain text mail "message", and html mail "html_message" (see the documentation on mail.send toward the end of this page) instead of using the "attach_alternative" system that's advised

Is this the issue?

Filed one nevertheless

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-06-14 03:13:07 -0500

FranciscoD's avatar

This was fixed in python-django-post_office via this issue:

HTML mails now work with python-django-post_office as back end too.

edit flag offensive delete link more

answered 2013-06-01 03:06:34 -0500

Evgeny's avatar

We did not foresee such usage. Possibly functions askbot.mail.send_mail and askbot.mail.mail_moderators can be modified to support other mail backends (other than django-'l "smtp" backend).

If you make a fix like this - please make a pull request on the github.

edit flag offensive delete link more


post-office upstream says it isn't needed, since it's implemented as a django email backend itself. Any other clues on what may be causing this?

FranciscoD's avatar FranciscoD  ( 2013-06-01 04:14:27 -0500 )edit

I'm still trying to figure out the cause @Evgeny. Once we know, I'll try and write a fix if required.

FranciscoD's avatar FranciscoD  ( 2013-06-01 04:15:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-06-01 03:01:24 -0500

Seen: 558 times

Last updated: Jun 14 '13