Skip to content

Commit ddbfa32

Browse files
authored
Update mail_utils.py
Need a more forgiving encoding scheme.
1 parent bb85be1 commit ddbfa32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mail/mail_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def create_email(to, subject, html, filenames=[], cc=[], bcc=[], sender=EMAIL_HO
9191
that it can be read.
9292
'''
9393
msg_alternative = MIMEMultipart('alternative')
94-
msg_alternative.attach(MIMEText(remove_html(html), 'plain', 'utf-8'))
95-
msg_alternative.attach(MIMEText(html, 'html', 'iso8859-15'))
94+
msg_alternative.attach(MIMEText(remove_html(html), 'plain', 'latin-1'))
95+
msg_alternative.attach(MIMEText(html, 'html', 'latin-1'))
9696
'''
9797
Attach plain and HTML variations of the body to main message content.
9898
'''

0 commit comments

Comments
 (0)