470,631 Members | 1,782 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

Creating HTML eMail with CDONTS

Hi Gang

I can create an email with ASP's using CDONTS and this works well. I'd like
to format the email as HTML. Can I do this with ASP's and CDONTS?

Regards,
Andy
Jul 19 '05 #1
2 2463
Create an html string like:

sBody = "<html><head><title>An e-mail</title></head><body>Hi<br>Here's an
e-mail.</body></html>"

Then use .BodyFormat=1 to specify HTML.

If you are using a server more recent than Windows NT 4.0, you should switch
over to CDO, as CDONTS has been discontinued.

Ray at work
"Andy" <an***********@siemens-nospam.com> wrote in message
news:10***************@pbht107x.smpi.siemens.ca...
Hi Gang

I can create an email with ASP's using CDONTS and this works well. I'd like to format the email as HTML. Can I do this with ASP's and CDONTS?

Regards,
Andy

Jul 19 '05 #2
Andy wrote:
I can create an email with ASP's using CDONTS and this works well. I'd like
to format the email as HTML. Can I do this with ASP's and CDONTS?


BodyFormat
An integer value which sets the text format of NewMail Object.

ObjMail.BodyFormat = 0 (HTML format)
ObjMail.BodyFormat = 1 (default Plain Text format)

--
Sugapablo :: ru********@sugapablo.com
http://www.sugapablo.com | ICQ:902845

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Robert L. | last post: by
4 posts views Thread by Andrew Williams | last post: by
3 posts views Thread by Niel | last post: by
2 posts views Thread by Paul Turley | last post: by
2 posts views Thread by Paul Turley | last post: by
11 posts views Thread by tshad | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.