Strip out carriage returns from subjects. Coses GH-209

This commit is contained in:
Aaron C. de Bruyn 2014-06-17 12:01:33 -07:00
parent ea9b772f35
commit ae53c1f6c7

View File

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