mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-05-03 17:14:24 +02:00
exclude '\r' from subject_part
This is to prevent BadHeaderError("Header values can't contain newlines..
This commit is contained in:
parent
0d9446480e
commit
859935e5ee
@ -115,7 +115,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
|||||||
elif type(recipients) != list:
|
elif type(recipients) != list:
|
||||||
recipients = [recipients,]
|
recipients = [recipients,]
|
||||||
|
|
||||||
msg = EmailMultiAlternatives( subject_part.replace('\n', ''),
|
msg = EmailMultiAlternatives( subject_part.replace('\n', '').replace('\r', ''),
|
||||||
text_part,
|
text_part,
|
||||||
sender,
|
sender,
|
||||||
recipients,
|
recipients,
|
||||||
|
Loading…
Reference in New Issue
Block a user