Hi All,,
I used this code to send an email to anyone, from my asp page, which accepts email address from the users of the form:
Sending a text e-mail using a remote server:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="smtp.server.com"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
%>
================================================== ===
Now in the place of this line: myMail.TextBody="This is a message."
I want to customize a long text data ...instaed of just using "This is a message"....
Please suggest me on this. I tried using::myMail.CreateHTML Body:"...the long text". But it gives an error saying- asp page contains more than one html body, etc...
Please suggest me what I can do about this...All I want to do is to customize and send a message that I want to, instead of just using"This is a message" , in the email.