[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:
parent
ff248fd4fa
commit
22475a046c
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue