How can I avoid random spaces in my HTML mail body when creating an email via Automation?
I am using: engine.SendEmail(emailOptions)
where emailOptions = new EmailOptions
The Message of the emailOptions is a string holding HML formatted data.
I’ve already tried adding a span style, but now I got an email where that exact tag got a random space…
Message = “<HTML><BODY><span style=\”white-space: nowrap;\”>” +
“My custom mail body with hyperlinks and bullet lists.<br><br>” +
“</span></BODY></HTML>”,
Due to these random spaces, my hyperlinks could fail and the mail content could contain HTML data making it less readable.
Mieke Dryepondt [SLC] [DevOps Advocate] Asked question