Replies: 8 comments
-
yup, that's what I was complaining about the editing of emails. Messy and even bizarre |
Beta Was this translation helpful? Give feedback.
-
ok. So what's the plan? Why not continue to use \n or multiples of, line breaks in the constants, |
Beta Was this translation helpful? Give feedback.
-
br is html - the mixture of the two makes no sense to me and may be a problem. I do know that the plain text emails need to be very very simple. Email programs are the end result - no matter what you send, the email program displays its own way. That said, I'm wondering if this is something that needs to be fully researched today. Unless there is someone who is presently working with this type of thing regularly beyond Zen Cart who is watching this project and wants to chime in. And yes, I volunteer to research if need be. |
Beta Was this translation helpful? Give feedback.
-
So, just looking at create_account, there are three variants of line-break substitution, followed by more in function zen_email. |
Beta Was this translation helpful? Give feedback.
-
This requires a comment to guide a PR, or not. |
Beta Was this translation helpful? Give feedback.
-
The end-result is simple:
NOTE: IT'S IMPORTANT TO NOTE THAT ALL EMAIL CLIENTS STILL ADHERE BEST TO XHTML4 SPEC AS COMMON DENOMINATOR. YOU SHOULD ALWAYS EXPECT THAT YOUR END-USERS CAN ONLY READ VERY OLD HTML FORMAT, AND NOT DEPEND ON ANY SUPPORT FOR MODERN HTML5 SYNTAX. Even most recent versions of Outlook can't consistently display all HTML5 markup. It's sad that still in 2020 the vast majority of email clients *need to use table-based layouts, as they are incapable of properly rendering modern approaches to HTML layout in a way that looks correct to the end-user. |
Beta Was this translation helpful? Give feedback.
-
Ok, so this replacement is wrong as I assumed in my forum post:
|
Beta Was this translation helpful? Give feedback.
-
In some cases, maybe, yes. |
Beta Was this translation helpful? Give feedback.
-
Is this really the dog's breakfast it appears to be?
https://www.zen-cart.com/showthread.php?225812-email-content-line-breaks-for-layout-formatting
Beta Was this translation helpful? Give feedback.
All reactions