mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-06-20 11:47:46 +02:00
Merge pull request #217 from darkpixel/GH-209-BadHeaderError
Strip out carriage returns from subjects. Coses GH-209
This commit is contained in:
commit
333429f21f
@ -113,7 +113,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,
|
msg = EmailMultiAlternatives( subject_part.replace('\n', ''),
|
||||||
text_part,
|
text_part,
|
||||||
sender,
|
sender,
|
||||||
recipients,
|
recipients,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user