From: Loic Baron Date: Mon, 27 Apr 2015 13:57:33 +0000 (+0200) Subject: Emails: fixed sender address had a newline X-Git-Tag: myslice-1.3~3 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=77bc81337b505dfa91b45272c8e7151f6e369b58 Emails: fixed sender address had a newline --- diff --git a/portal/actions.py b/portal/actions.py index 46c69190..a6b33a57 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -1055,6 +1055,7 @@ def send_email_to_pis(wsgi_request, request, obj_type): theme.template_name = 'email_default_sender.txt' sender = render_to_string(theme.template, request) + sender = sender.replace('\n', '') msg = EmailMultiAlternatives(subject, text_content, sender, recipients) msg.attach_alternative(html_content, "text/html")