jeffcullina
Programmer
I am creating an email using CDONTS. It works fine with the exception of the formatting of the body content. Depending on the values and/or data types in the variables called in the body, sometimes the lines will appear bold or italicized, and sometimes they show up as plain text. I am using no formatting so I should not be getting any bold or italicized text. How can I stop this? The code I am using is below.
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"
objMail.To = "jeffrey.cullina@cdicorp.com"
objMail.From = "jeffrey.cullina@cdicorp.com
objMail.Subject = "Test email"
objMail.Body = "First line" & vbcrlf &_
"COUNT: " & icount & vbcrlf &_
"TEXT" & text
objMail.Send
set objMail = nothing
%>
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"
objMail.To = "jeffrey.cullina@cdicorp.com"
objMail.From = "jeffrey.cullina@cdicorp.com
objMail.Subject = "Test email"
objMail.Body = "First line" & vbcrlf &_
"COUNT: " & icount & vbcrlf &_
"TEXT" & text
objMail.Send
set objMail = nothing
%>