chack out the <a href> stuff ....... i want to send a mail through asp which will contain any xyz link in it but all it does it print the <a href> as it is.... now do u get it!<BR><BR><BR>Set MyCDO = Server.CreateObject("CDONTS.NewMail")<BR>MyCDO.Fro m = requiredemail<BR>MyCDO.To = "firstname.lastname@example.org"<BR>MyCDO.Subject = "MAIL"<BR> <BR>TBdy="<a href=""myPage.htm"">Link in an email</a>" <BR><BR>TBdy = TBdy & "FeedBack from the user" <BR>MyCDO.Body = TBdy<BR>
You're not sending a HTML email - you're sending a TEXT email but putting HTML in it:<BR>http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=send+html+email+cdonts<BR>http://www.webmasterworld.com/forum47/312.htm<BR>http://www.webmasterworld.com/forum47/196.htm<BR><BR>You need to add these lines:<BR>MyCDO.BodyFormat = 0 <BR>MyCDO.MailFormat = 0 <BR><BR>Craig.
Did you read those pages?<BR><BR>At the moment, you're sending TEXT to the client. The mime-type headers in the email are set as "text/plain". That means that the mail client's treating it as text, not HTML.<BR><BR>When you add those lines, it causes CDONTS to modify the mime-type and set it as "text/html". Then the mail client correctly identifies the text as HTML and will display it correctly.<BR><BR>If you want to learn ASP, you're going to have to read links if people post them.<BR><BR>Craig.