mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-02-16 18:20:48 +01:00
Merge pull request #274 from jennyq/master
exclude '\r' from subject_part
This commit is contained in:
commit
aa46cc6988
@ -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