vintasoftware / django-templated-email

Django module to easily send templated emails using django templates, or using a transactional mail provider (mailchimp, silverpop, etc.)
MIT License
702 stars 130 forks source link

Remove all newlines from subject #136

Closed longhotsummer closed 2 years ago

longhotsummer commented 2 years ago

Django doesn't allow newlines at all in the subject, not just at the start or end.

This is useful if the template generates the subject based on context variables which may have newlines in them.

coveralls commented 2 years ago

Coverage Status

Coverage decreased (-96.7%) to 0.0% when pulling 106337cb340d7ff39a11b2a7066db5aa5dca9658 on longhotsummer:patch-1 into 8b83af34738fe6e9f973f198d836a17bfef529bb on vintasoftware:develop.

fjsj commented 2 years ago

LGTM, thanks!