Sim
Well-known member
- Affected version
- 2.1.10
If you create a mail template with a complex subject line which uses conditionals it can be easy to inadvertently introduce invalid characters such as line breaks and tabs into the email subject.
Some mail transports will not accept emails that have line breaks in subject lines.
It would make things more robust if non-valid characters (eg line breaks, tabs, etc) were stripped from the mail subject automatically.
Example:
... this will not send on some mail transports due to a new line and a tab character in the middle of the subject string.
We could try and get everything onto a single line - but the more complex the subject line is - the more unreadable it becomes.
Some mail transports will not accept emails that have line breaks in subject lines.
It would make things more robust if non-valid characters (eg line breaks, tabs, etc) were stripped from the mail subject automatically.
Example:
HTML:
<mail:subject>
<xf:if is="$testMode">{{ phrase('test_mode') }}</xf:if>
{{ phrase('subject_line', {
'board': $xf.options.boardTitle
}) }}
</mail:subject>
... this will not send on some mail transports due to a new line and a tab character in the middle of the subject string.
We could try and get everything onto a single line - but the more complex the subject line is - the more unreadable it becomes.