mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-25 16:18:51 +01: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:
|
||||
recipients = [recipients,]
|
||||
|
||||
msg = EmailMultiAlternatives( subject_part.replace('\n', ''),
|
||||
msg = EmailMultiAlternatives( subject_part.replace('\n', '').replace('\r', ''),
|
||||
text_part,
|
||||
sender,
|
||||
recipients,
|
||||
|
Loading…
Reference in New Issue
Block a user