strip email subject
This commit is contained in:
parent
01f404a75b
commit
138ca5c0a3
|
@ -89,7 +89,7 @@ def email_sectors(formdatas, when):
|
|||
|
||||
for destination, data in sectors.iteritems():
|
||||
destinations = [d.strip() for d in destination.split(',') if d.strip()]
|
||||
mail = EmailMessage(subject.render(context), message.render(context),
|
||||
mail = EmailMessage(subject.render(context).strip(), message.render(context),
|
||||
settings.DEFAULT_FROM_EMAIL, destinations)
|
||||
attachement_body = StringIO.StringIO()
|
||||
attachment = csv.writer(attachement_body)
|
||||
|
|
Loading…
Reference in New Issue