Professional Web Applications Themes

CDONTS vs CDO - ASP Components

OK, so obviously cdonts doesnt work with ii6. Why its depreciated, i dont know. What i need to know is how to just send a simple email, my old cold had the cdonts.to cdonts.subject ect ect, i cant find anywhere that explains the object enough to say how to send a simple email with the to, from, subject and body fields. somebody just wanna put in an example code that sends an email?? i feel dumb asking, but i need help. ty...

  1. #1

    Default CDONTS vs CDO

    OK, so obviously cdonts doesnt work with ii6. Why its
    depreciated, i dont know. What i need to know is how to
    just send a simple email, my old cold had the cdonts.to
    cdonts.subject ect ect, i cant find anywhere that explains
    the object enough to say how to send a simple email with
    the to, from, subject and body fields. somebody just
    wanna put in an example code that sends an email?? i feel
    dumb asking, but i need help. ty
    RIP Guest

  2. #2

    Default Re: CDONTS vs CDO

    "RIP" wrote:
    : OK, so obviously cdonts doesnt work with ii6.

    Actually, it does. It's just not installed and it has been replaced by CDO.

    : Why its depreciated, i dont know.

    CDO replaces it.

    : What i need to know is how to
    : just send a simple email, my old cold had the cdonts.to
    : cdonts.subject ect ect, i cant find anywhere that explains
    : the object enough to say how to send a simple email with
    : the to, from, subject and body fields. somebody just
    : wanna put in an example code that sends an email?? i feel
    : dumb asking, but i need help. ty

    I went to my google toolbar and typed in CDO How-to. A whole slew of links
    came up and this was the 2nd on the list:
    [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;286431[/url]

    Enjoy!

    --
    Roland Hall
    /* This information is distributed in the hope that it will be useful, but
    without any warranty; without even the implied warranty of merchantability
    or fitness for a particular purpose. */
    Technet Script Center - [url]http://www.microsoft.com/technet/scriptcenter/[/url]
    WSH 5.6 Doentation - [url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]
    MSDN Library - [url]http://msdn.microsoft.com/library/default.asp[/url]


    Roland Hall Guest

  3. #3

    Default Re: CDONTS vs CDO

    >-----Original Message-----
    >"RIP" wrote:
    >: OK, so obviously cdonts doesnt work with ii6.
    >
    >Actually, it does. It's just not installed and it has
    been replaced by CDO.
    >
    >: Why its depreciated, i dont know.
    >
    >CDO replaces it.
    >
    >: What i need to know is how to
    >: just send a simple email, my old cold had the cdonts.to
    >: cdonts.subject ect ect, i cant find anywhere that
    explains
    >: the object enough to say how to send a simple email with
    >: the to, from, subject and body fields. somebody just
    >: wanna put in an example code that sends an email?? i
    feel
    >: dumb asking, but i need help. ty
    >
    >I went to my google toolbar and typed in CDO How-to. A
    whole slew of links
    >came up and this was the 2nd on the list:
    >[url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]
    US;286431
    >
    >Enjoy!
    >
    >--
    >Roland Hall
    >/* This information is distributed in the hope that it
    will be useful, but
    >without any warranty; without even the implied warranty
    of merchantability
    >or fitness for a particular purpose. */
    >Technet Script Center -
    [url]http://www.microsoft.com/technet/scriptcenter/[/url]
    >WSH 5.6 Doentation -
    [url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]
    >MSDN Library -
    [url]http://msdn.microsoft.com/library/default.asp[/url]
    >
    >
    >.
    >
    Had the same problem. With some research, I figured that
    you need to use the CDO.Message component instead of
    CDONTS.NewMail. Also, you need to decide if you want to
    send the message as HTML (use HTMLBody attribute) or Text
    (use TextBody attibute instead of the Body attribute).
    That's it. Here's some sample code that works for me:

    Set objCDOMail = Server.CreateObject("CDO.Message")
    objCDOMail.From = "someoneblahblah.com"
    objCDOMail.To = "someonecompany.com"
    objCDOMail.Subject = "Test Subject..."
    objCDOMail.TextBody = bodystr

    objCDOMail.Send
    Set objCDOMail = Nothing


    Josh
    Josh Saiz Guest

  4. #4

    Default Re: CDONTS vs CDO

    "Josh Saiz" wrote in message news:70e601c4022e$c0470ed0$a501280aphx.gbl...
    : Had the same problem.

    Same with what as what?

    : With some research, I figured that
    : you need to use the CDO.Message component instead of
    : CDONTS.NewMail.

    Yes, unless you install CDONTS on W2K3, you need to use CDO and you use CDO
    commands with it, not CDONTS commands.

    : Also, you need to decide if you want to
    : send the message as HTML (use HTMLBody attribute) or Text
    : (use TextBody attibute instead of the Body attribute).
    : That's it. Here's some sample code that works for me:

    Yes, TextBody for plain text, HTMLBody for HTML messages.

    : Set objCDOMail = Server.CreateObject("CDO.Message")
    : objCDOMail.From = "someoneblahblah.com"
    : objCDOMail.To = "someonecompany.com"
    : objCDOMail.Subject = "Test Subject..."
    : objCDOMail.TextBody = bodystr
    :
    : objCDOMail.Send
    : Set objCDOMail = Nothing

    Glad to hear you got it working.


    Roland Hall Guest

Similar Threads

  1. cdonts.dll on x64
    By Mark in forum ASP Components
    Replies: 1
    Last Post: March 5th, 02:30 AM
  2. CDONTS
    By Atrax in forum ASP
    Replies: 20
    Last Post: July 3rd, 03:21 AM
  3. using CDONTS on XP iis 5.1
    By j in forum ASP Database
    Replies: 1
    Last Post: December 14th, 04:11 AM
  4. CDONTS for IIS 5.1
    By Chad Lupkes in forum ASP
    Replies: 3
    Last Post: July 7th, 07:25 PM
  5. CDONTS & BCC
    By Sean in forum ASP
    Replies: 3
    Last Post: July 5th, 06:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139