Merge pull request #274 from jennyq/master

exclude '\r' from subject_part
This commit is contained in:
Ross Poulton 2014-10-30 10:40:11 +11:00
commit aa46cc6988

View File

@ -115,7 +115,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
elif type(recipients) != list:
recipients = [recipients,]
msg = EmailMultiAlternatives( subject_part.replace('\n', ''),
msg = EmailMultiAlternatives( subject_part.replace('\n', '').replace('\r', ''),
text_part,
sender,
recipients,