Ask Your Question
1

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 gravatar image

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
0

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

FranciscoD gravatar image

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

https://github.com/ui/django-post_office/issues/16

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

edit flag offensive delete link more
0

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

Evgeny gravatar image

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

Comments

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?

https://github.com/ui/django-post_office/issues/16#issuecomment-18785924

FranciscoD gravatar imageFranciscoD ( 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 gravatar imageFranciscoD ( 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

2 followers

Stats

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

Seen: 398 times

Last updated: Jun 14 '13