CDONTS and sending HTML and text versions simultaneously

Discussion in 'ASP General' started by Steve, Feb 9, 2004.

  1. Steve

    Steve Guest

    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
     
    Steve, Feb 9, 2004
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:IMNVb.52093$%...
    > 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
    >
    >
     
    Aaron Bertrand - MVP, Feb 9, 2004
    #2
    1. Advertising

  3. Steve

    Steve Guest

    Thanks.

    Do I need to download CDO Message, or is it pretty much standard?
    Steve
    "Aaron Bertrand - MVP" <> wrote in message
    news:...
    > 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" <> wrote in message
    > news:IMNVb.52093$%...
    > > 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
    > >
    > >

    >
    >
     
    Steve, Feb 9, 2004
    #3
  4. > 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/
     
    Aaron Bertrand - MVP, Feb 9, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Pearson
    Replies:
    2
    Views:
    439
    Kevin Spencer
    Jul 28, 2003
  2. Paul Turley

    Sending HTML formatted mail using CDONTS

    Paul Turley, Aug 12, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    341
    Parker Zhang [MSFT]
    Aug 12, 2003
  3. Steve

    CDONTS: HTML and text versions

    Steve, Feb 2, 2004, in forum: ASP General
    Replies:
    1
    Views:
    108
    Steven Burn
    Feb 2, 2004
  4. BaWork

    Sending CDONTS HTML email issue

    BaWork, Mar 23, 2005, in forum: ASP General
    Replies:
    5
    Views:
    234
    Adrienne
    Mar 26, 2005
  5. Pav
    Replies:
    3
    Views:
    194
    ThatsIT.com.au
    Feb 10, 2007
Loading...

Share This Page