Skip to content

Commit a44290f

Browse files
committed
Send pure plain-text mails as quoted-printable
We were already using QP for HTML emails, but due to an oversight it wasn't done for the pure plaintext ones. Fix that as it's a lot easier to debug that way, and it's what most MUAs do so it should lead to lower spam scores.
1 parent 53643da commit a44290f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pgweb/mailqueue/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def send_simple_mail(sender, receiver, subject, msgtxt, attachments=None, userge
5353
mpart.attach(MIMEText(htmlbody, 'html', _charset=_utf8_charset))
5454
else:
5555
# Just a plaintext body, so append it directly
56-
mpart = MIMEText(msgtxt, _charset='utf-8')
56+
mpart = MIMEText(msgtxt, _charset=_utf8_charset)
5757

5858
if attachments:
5959
msg = MIMEMultipart()

0 commit comments

Comments
 (0)