I’ve noticed that mail sent from Lucee (4.5.1.023) has line breaks inserted
every 900 or so characters, despite the fact that the preceding block has
multiple CRLFs and is therefore not a continuous line.
I’ve read this Railo ticket https://issues.jboss.org/browse/RAILO-2155
and understand that the Internet Message Format standard prescribes a limit
of 998 characters per line after which mail servers are supposed to add a
line. But that’s not the case here as all of my line lengths are well under
that limit (I’m actually wrapping them at 72 before passing the text to
cfmail)
The deliberate line breaks are all visible in the generated mail, but it
seems they are being ignored and the first 998 characters treated as if it
were a continuous line.
I’ve also tried belt & braces by using the “wraptext” attribute of cfmail,
setting it at 72, with the same result: the wrapping is visible, but the
unwanted break every 900 or so characters keeps being inserted. Specifying
“quoted-printable” as a parameter makes no difference either.
I have tried using two different mail servers with the same result.
Running the same code against ACF using the same mail server does not
result in any extra line breaks.
For me, this generates mail with unwanted line breaks inserted at lines 66
and 132 in the first message. Can anyone confirm this behaviour and/or
point to a workaround?
Paul KlinkenbergOp 23 sep. 2015, om 16:23 heeft Julian Halliwell <@Julian_Halliwell> het volgende geschreven:
I’ve noticed that mail sent from Lucee (4.5.1.023) has line breaks inserted every 900 or so characters, despite the fact that the preceding block has multiple CRLFs and is therefore not a continuous line.
I’ve read this Railo ticket https://issues.jboss.org/browse/RAILO-2155 and understand that the Internet Message Format standard prescribes a limit of 998 characters per line after which mail servers are supposed to add a line. But that’s not the case here as all of my line lengths are well under that limit (I’m actually wrapping them at 72 before passing the text to cfmail)
The deliberate line breaks are all visible in the generated mail, but it seems they are being ignored and the first 998 characters treated as if it were a continuous line.
I’ve also tried belt & braces by using the “wraptext” attribute of cfmail, setting it at 72, with the same result: the wrapping is visible, but the unwanted break every 900 or so characters keeps being inserted. Specifying “quoted-printable” as a parameter makes no difference either.
I have tried using two different mail servers with the same result.
Running the same code against ACF using the same mail server does not result in any extra line breaks.
For me, this generates mail with unwanted line breaks inserted at lines 66 and 132 in the first message. Can anyone confirm this behaviour and/or point to a workaround?
Op 23 sep. 2015, om 16:23 heeft Julian Halliwell <@Julian_Halliwell> het volgende geschreven:
I’ve noticed that mail sent from Lucee (4.5.1.023) has line breaks inserted
every 900 or so characters, despite the fact that the preceding block has
multiple CRLFs and is therefore not a continuous line.
–
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
Instead of sending HTML messages parts using 7bit content transfer encoding, the parts will be sent as quoted-printable which matches the behavior of ACF. The quoted-printable encode automatically wraps each line to 76 characters, but it encodes the line wrapping so that decoded text gets restored without line/word breaks where there are none in the source string.