got the following function to send emails which works peachy
only problem is I want a carriage return at the end of the line
I've tried <BR>, %0D%0A and vbCrLf in various guises and places and I always end up with <BR>, %0D%0A or vbCrLf in instead of a carriage return
It's called in an ASP page, which passes in the recipient
function SendEmail(sTo)
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.BodyFormat = 0
objNewMail.MailFormat = 0
strBody = " Thank you for registering %0D%0A "
strBody = strBody & "The website address is "
objNewMail.Body= strbody
objNewMail.send "me@home.co.uk", sTo , "the subject"
Set objNewMail = Nothing
end function
any ideas on which code/method/punctation I need to get a carriage return in
thanks
only problem is I want a carriage return at the end of the line
I've tried <BR>, %0D%0A and vbCrLf in various guises and places and I always end up with <BR>, %0D%0A or vbCrLf in instead of a carriage return
It's called in an ASP page, which passes in the recipient
function SendEmail(sTo)
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.BodyFormat = 0
objNewMail.MailFormat = 0
strBody = " Thank you for registering %0D%0A "
strBody = strBody & "The website address is "
objNewMail.Body= strbody
objNewMail.send "me@home.co.uk", sTo , "the subject"
Set objNewMail = Nothing
end function
any ideas on which code/method/punctation I need to get a carriage return in
thanks