Author: Akash Heranjal
Problem:
The code is simple and straight. The code builds HTML email and uses
CDOSYS object to send the email to recipients. Logic is simple, build
an HTML mailer string in a VBScript variable myMailBody. Assign the
variable myMailBody to the HTML Body of the email using CDOSYS object
and send the mailer to recipients. But the problem starts here…
When the recipient views the mailer, S/He can see an ! symbol in-between the mailer content.
Solution:
After a long research and trials found the solutions for this issue; it is bit weird but solves the issue.
The HTML mailer string built in the VBScript variable myMailBody should include &VBCRLF
(Line Break) on or before every 1024th character in the string. If not
done, the CDOSYS object adds ! symbol in the mailer body at every
1024th character.
So, in case if you have the mailer body built using a variable (let us
say it is in a loop), add &VBCRLF at the end of the string to
insert line break. This should solve the problem.