I just filed a Lucee issue to address an issue wit...
# lucee
d
I just filed a Lucee issue to address an issue with sending HTML emails: https://luceeserver.atlassian.net/browse/LDEV-4039 If you agree with the issue I raised, I'd recommend voting for it!
b
You should give every product manager I've ever known lessons on well documented tickets.
d
@bhartsfield Thanks, I try!
z
Totally agree, good stuff
a
Looks that I'm not able to upvote anything in Jira anymore. I used to do it in the old view, that I can't access anymore. https://www.tutorialspoint.com/jira/jira_watch_and_vote_on_issue.htm#:~:text=Voting%20on%20an%20Issue,instantly%20vote%20for%20that%20issue.
This issue deserves many upvotes
z
Doesn't really need upvotes, Dan wants to develop a patch then we'll move it thru as usual
👍 2
b
for the record though, upvoting works fine for me still
m
Absolutely disagree with this issue! The max Line length in an e-mail is defined in the RFC . Lines longer than 998 characters can result in several Mailserver Errors. See here: https://www.smtp2go.com/blog/email-formatting-affecting-inbox-delivery/#:~:text=Line%20Length%20Limits&text=1)%2C%20a%20line%20of%20characters,550%20Maximum%20line%20length%20exceeded Don't Play around with this!
a
Regarding upvotes: Going to check this on my laptop soon. Can't find anything in my mobile app, nor in my mobiles desktop view.
d
@madmike_de My suggestion to use quote-printable automatically wraps lines at 76 characters, but it encodes new lines so the rendered output is not changed. The avoiding the line character restriction is one of the reasons quote printable was introduced. So quote printable allows lines longer than 1000 characters by encoding new lines and automatically wrapping each line at 76 characters. Best of both worlds!
@zackster I didn't want to work in a patch without some guidance on whether or not the patch would even be acceptable. I'm not sure what the logic was behind using 7bit for HTML messages, so there could be something I'm missing.
z
As long as it's optional I don't see any problem
and from memory, the original error was due to including minified css in an email. Most minifiers have a max line length option which I highly recommend using, as it makes errors a lot easier to digest when it's error on
Line 45, column 80
, than error on
Line 1, Column 7343
d
Unfortunately, this if there's base64 encoded data in a string, it can still extend the max line length. Some CSS minifiers also won't add new lines inside a CSS rule (like YUI's minifier), which means a rule can still exceed the maximum line length. However, this problem could be biting any HTML. For example, you might be generating some HTML for a message that ends up having a long URL with some tracking information embedded in it. If the HTML is condensed/minified, you could run into an issue where an anchor element is embedded in the range where a new line would be forced, which would break the link. Similiarly, you could have that problem if you were trying to embed a Base64 encoded image (which isn't well supported with email clients, but if you're explicitly targeting a client that supports it, it might not be an issue for you).
z
makes sense, let's make Lucee flexible