Selaa lähdekoodia

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

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

* [minor] review fixes
version-14
Makarand Bauskar 8 vuotta sitten
committed by GitHub
vanhempi
commit
22475a046c
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. +1
    -0
      frappe/email/queue.py

+ 1
- 0
frappe/email/queue.py Näytä tiedosto

@@ -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



Ladataan…
Peruuta
Tallenna