Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.0-b1
-
Fix Version/s: 4.0.0-b1
-
Component/s: None
-
Labels:None
Description
Throughout the system we ask for HTML and Text versions for emails. Primarily through email templates, however, it is possible to send email directly to a client using the Email feature on their client profile page, and as of 4.0 via the Mass Mailer plugin.
At least in the case of sending a direct email to a client, no text version has to be entered and an email can be sent with an HTML only version. In mail clients that choose not to render HTML, these would appear as blank emails.
Instead, what we should do is automatically generate the text version if it does not exist at the time the message is sent. This would at minimum involve stripping tags and converting breaks to new lines. There may be some build in method to accomplish this already, but I'm not aware of it.
Issue Links
- blocks
-
CORE-2134 Mass Mailer: Do not require Text version of email
-
- Closed
-
It should apply globally, but the HTML to Text conversion should occur on the fly at the time the email is sent. We are not converting to text and saving the text version anywhere, except perhaps as a result of mail logs. All existing templates in the system would continue to work as they do without conversion, because a text version is present. Unless users remove the text version, then it would be converted.
So then, always convert from HTML when there is no text version - system wide. Just do it on the fly, and do not store the converted text version.