Ask a Question related to ASP Components, Design and Development.

  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. Similar Questions and Discussions

    1. cdonts.dll on x64
      Hi... I know I'm probably going to take a lot of grief over this, but we have a pile of legacy code still using CDONTS on 32-bit systems. We're...
    2. CDONTS
      CDO.Message see www.aspfaq.com CDONTS has been phased out. the last OS to include it was Windows 2000
    3. using CDONTS on XP iis 5.1
      Hi Folks. Trying to use ASP to submit data to both an access database and to an e-mail address at the same time. After downloading the example...
    4. CDONTS for IIS 5.1
      Hi all, I'm trying to get a better understanding of how to use CDONTS on a web server, and I find that I don't have it installed on my own. I'm...
    5. CDONTS & BCC
      Hi I have a website hosted on a virtual server, and am trying to run a script that sends an email with a BCC address. The email gets sent just...
  3. #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 Documentation - [url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]
    MSDN Library - [url]http://msdn.microsoft.com/library/default.asp[/url]


    Roland Hall Guest

  4. #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 Documentation -
    [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 = "someone@blahblah.com"
    objCDOMail.To = "someone@company.com"
    objCDOMail.Subject = "Test Subject..."
    objCDOMail.TextBody = bodystr

    objCDOMail.Send
    Set objCDOMail = Nothing


    Josh
    Josh Saiz Guest

  5. #4

    Default Re: CDONTS vs CDO

    "Josh Saiz" wrote in message news:70e601c4022e$c0470ed0$a501280a@phx.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 = "someone@blahblah.com"
    : objCDOMail.To = "someone@company.com"
    : objCDOMail.Subject = "Test Subject..."
    : objCDOMail.TextBody = bodystr
    :
    : objCDOMail.Send
    : Set objCDOMail = Nothing

    Glad to hear you got it working.


    Roland Hall Guest

Posting Permissions

  • You may not post new threads
  • You may 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