Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Problem in sending text formatted mail by CDO

text formatted mail in CDO

6:16 am on Jun 13, 2006 (gmt 0)

New User

10+ Year Member

joined:May 24, 2006
votes: 0

in my asp application i tried to send a text mail which is formatted using formatting characters like (\n - for newline).but after recieving the mail, it looks not formatted..it is just shows a chunk of paragaraph.why this is?
my code is

Set objCDO = Server.CreateObject("CDO.Message")
'to ,from,subject are set
strBody="hai \n"
strBody=strBody & "how are you? \n"
strBody=strBody & "why it is not working? \n"
mailObj.textbody =strBody

is the new line characters are not supported in CDO?..... if yes guide me to other options in CDO to send the text formatted mails.
thanks in advance. if any one help me regarding this problem.