[hotfix] encode the email message to utf8 before sending mail (#3785)

* [hotfix] encode the email message to utf8 before sending mail

* [minor] review fixes
This commit is contained in:
Makarand Bauskar 2017-07-27 12:14:37 +05:30 committed by GitHub
parent ff248fd4fa
commit 22475a046c

View file

@ -474,6 +474,7 @@ def prepare_message(email, recipient, recipients_list):
message = message.replace("<!--recipient-->", recipient)
message = (message and message.encode('utf8')) or ''
if not email.attachments:
return message