By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 992 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

CDONTS and sending HTML and text versions simultaneously

P: n/a
I've been told that an e-mail can be constructed using headers so that both
a text and HTML version can be sent out simultaneously and the e-mail client
will display the type that it can handle
(http://www.wilsonweb.com/wmt5/html-email-multi.htm).

How is this done using CDONTS and ASP to send an e-mail? Is there a specific
field that the content type gets put into? I tried putting:

Content-Type: multipart/alternative;
boundary="----=_NextPart_000_002C_01BFABBF.4A7D6BA0"

As the first line of the body of the e-mail as a test, but it just ended up
displaying as the first line of the body of the e-mail when it was received.

Thanks in advance!

Steve
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You can use CDO.Message. Kick CDONTS to the curb; it's deprecated anyway.

http://www.aspfaq.com/2474

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Steve" <sb*****@deletethis.stny.rr.com> wrote in message
news:IM*******************@twister.nyroc.rr.com...
I've been told that an e-mail can be constructed using headers so that both a text and HTML version can be sent out simultaneously and the e-mail client will display the type that it can handle
(http://www.wilsonweb.com/wmt5/html-email-multi.htm).

How is this done using CDONTS and ASP to send an e-mail? Is there a specific field that the content type gets put into? I tried putting:

Content-Type: multipart/alternative;
boundary="----=_NextPart_000_002C_01BFABBF.4A7D6BA0"

As the first line of the body of the e-mail as a test, but it just ended up displaying as the first line of the body of the e-mail when it was received.
Thanks in advance!

Steve

Jul 19 '05 #2

P: n/a
Thanks.

Do I need to download CDO Message, or is it pretty much standard?
Steve
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uJ**************@TK2MSFTNGP10.phx.gbl...
You can use CDO.Message. Kick CDONTS to the curb; it's deprecated anyway.

http://www.aspfaq.com/2474

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Steve" <sb*****@deletethis.stny.rr.com> wrote in message
news:IM*******************@twister.nyroc.rr.com...
I've been told that an e-mail can be constructed using headers so that

both
a text and HTML version can be sent out simultaneously and the e-mail

client
will display the type that it can handle
(http://www.wilsonweb.com/wmt5/html-email-multi.htm).

How is this done using CDONTS and ASP to send an e-mail? Is there a

specific
field that the content type gets put into? I tried putting:

Content-Type: multipart/alternative;
boundary="----=_NextPart_000_002C_01BFABBF.4A7D6BA0"

As the first line of the body of the e-mail as a test, but it just ended

up
displaying as the first line of the body of the e-mail when it was

received.

Thanks in advance!

Steve


Jul 19 '05 #3

P: n/a
> Do I need to download CDO Message, or is it pretty much standard?

Steve, you could check by running the code sample, and it would take about
three seconds to figure out if you have it already.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.