I've successfully automated personalized reports for my team, but I'm encountering a minor issue.
Some emails contain an extra space in the middle of the HTML body, which can sometimes expose an HTML tag. For instance, "Consul invidunt" may appear as "Consul invi dunt," or even "< p> Consul invidunt" with the paragraph tag exposed because of the extra space.
I've tried using "space traps" like adding
<p> </p>
to catch the spaces, but it's not always effective.
This problem only affects certain recipients due to the variability of data frames and recipient names in the email body. Interestingly, the HTML appears flawless when pasted into an editor.
I've ruled out Outlook as the cause since the issue persists when sending to Gmail.
Here's a snippet of my code:
{
// Code here
}
If you have any insights or suggestions, please share them! Any help is appreciated.