|
 |
asp_cdo thread: html mails using cdo
Message #1 by "shreek" <shreekanth.sn@e...> on Wed, 29 Aug 2001 13:47:22
|
|
Hi everyone........I'm trying to send a mail with html as the body as in
my code below....but I get only a blank mail and doesnt have the message.
Why so.....any idea. Plz lemme know. thanx in adv
set lcl_objmail = Server.CreateObject("CDONTS.NewMail")
lcl_objmail.From = "blah@b..."
lcl_objmail.To = "blah@b..."
lcl_objmail.Subject = "Test mail"
lcl_objmail.BodyFormat = 0
lcl_objmail.MailFormat = 0
lcl_objmail.Body = "<html><head><title>Mail in
html</title></head><body><p><b> This is the body </b></body></html>"
lcl_objmail.Send
Message #2 by Joe Ingle <Joe@k...> on Wed, 29 Aug 2001 14:36:39 +0100
|
|
Try this:
set lcl_objmail = Server.CreateObject("CDONTS.NewMail")
HTML="<html><head><title>Mail in html</title></head><body><p><b> This is the body
</b></body></html>"
lcl_objmail.From = "blah@b..."
lcl_objmail.To = "blah@b..."
lcl_objmail.Subject = "Test mail"
lcl_objmail.BodyFormat = 0
lcl_objmail.MailFormat = 0
lcl_objmail.Body = HTML
lcl_objmail.Send
set lcl_objmail=nothing
-----Original Message-----
From: shreek [mailto:shreekanth.sn@e...]
Sent: Wednesday, August 29, 2001 02:00
To: ASP CDO
Subject: [asp_cdo] html mails using cdo
Hi everyone........I'm trying to send a mail with html as the body as in
my code below....but I get only a blank mail and doesnt have the message.
Why so.....any idea. Plz lemme know. thanx in adv
set lcl_objmail = Server.CreateObject("CDONTS.NewMail")
lcl_objmail.From = "blah@b..."
lcl_objmail.To =3D "blah@b..."
lcl_objmail.Subject = "Test mail"
lcl_objmail.BodyFormat = 0
lcl_objmail.MailFormat = 0
lcl_objmail.Body = "<html><head><title>Mail in
html</title></head><body><p><b> This is the body </b></body></html>"
lcl_objmail.Send
|
|
 |