473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

CDONTS and sending HTML and text versions simultaneously

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
3 1868
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
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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve | last post by:
Is it possible, using CDONTS, to send out both a text and HTML version of an e-mail (in the same e-mail) so that people who have HTML turned off on their client will see the text version? Thanks...
2
by: Savas Ates | last post by:
im sending email with cdonts.. my mail format is html format.. and also in my mail code there are html and javascript codes. i open my mail with outlook it works.. but im sending it to hotmail...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
2
by: Paul Turley | last post by:
Does anyone have some sample code for sending an HTML formatted message using CDONTS? Thanks RE: Sending HTML formatted mail using CDONTS -- Paul Turley, MCSD, MCAD, MCT, MSF...
4
by: Roger Withnell | last post by:
I'm sending Russian text in an email generated from the website which displays in the email as ?????????? The website is set to codepage 65001 and the charset to utf-8. Please advise. ...
7
by: Paul | last post by:
I have just started work on a system using CDONTS to mail out. Whilst this is fine on the server, my local development machine is using XP Pro with IIS5.1 installed. Is there a way I can get the...
15
by: Earl Partridge | last post by:
If there's a newgroup for this subject, please point me to it... Is it possible to set the font size of the body of the text? Earl
7
by: Jason1983 | last post by:
Hello sir, When iam trying to send emails to my user accounts which are gmail id's using my application it is giving me this error. Here is the error... Server object error 'ASP 0177 : 800401f3'...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.