A VB6 applications sends a HTML email. Please have a look at the code below. The email received has all the blank spaces stripped out i.e. all of the spaces on line 7 are stripped out and the email sent says: “this is a test”. Is there a way to send a HTML email with all of the spaces.
strMailText = strMailText & "<b><font size=""2"" face=""Arial""><br>Test Email</font></b><br><br>"
strMailText = strMailText & "<table border='1'>"
strMailText = strMailText & "<tr>"
strMailText = strMailText & "<td><b><font size=""2"" face=""Arial"">Test Column</font></b></td>"
strMailText = strMailText & "</tr>"
strMailText = strMailText & "<td><font size=""2"" face=""Arial"">This is a test</font></td>"
strMailText = strMailText & "<tr>"
strMailText = strMailText & "table"
SendEMail strEmailServer, "test@test.com", strEMailTo, _
"Test Email", strMailText, True
Most html rendering engines collapse multiple consecutive spaces. try writing instead of space, non-breaking spaces:
or