We have been having trouble with this for years, but it seems to be even more problematic recently. It is very frustrating as it makes it impossible for us to send responsive email templates to our list. Several particular problems we've noticed:
- When initially saving an email template within the Docs module, the whole <head> is stripped out. If we edit the newly created template and paste in the same source code a second time, it does not do this. Apparently something about the sanitization is different when first creating the doc versus subsequent edits.
- When sending an email using the campaign module, much more gets stripped out. This does not happen with emails that are sent to an individual contact or even when a campaign test email is sent. It only happens when the campaign is actually launched. It would be great if we could disable whatever sanitization process runs as part of that. Surely there is a way to do that since it is not a problem with other types of emails that are sent. Per our observations, these are the types of html code that get stripped out:
- The full <head> section
- The <body> tag
- All comments like <!--A comment--> (this is frustrating because it prevents use of specific directives for mso products like Outlook)
- Some style declarations, including max-width, display, and overflow.
- Img width
- Another problematic aspect is that character codes get added even for something as basic as tabs and = signs. We believe that this has contributed to our emails getting flagged as spam due to content filtering. It seems to be added within the docs module since the test emails also show this. Other emails that we receive from other sources do not have these character codes so it doesn't seem to be a function of the email client (Thunderbird).
Here are links to screenshots of the same code snippet:
- The original code: https://www.webservi...de-original.jpg
- After being saved as a doc and re-edited: https://www.webservi...code-x2docs.jpg
- Campaign email sent using the test feature: https://www.webservi...est-message.jpg
- An actual sent campaign email: https://www.webservi...ign-message.jpg
Any help would be greatly appreciated as it is a big problem for us and I'm sure for others as well. Many X2 users may not even realize that this is happening since it does not happen with the campaign test emails.