Ask a Question related to ASP Components, Design and Development.
-
RIP #1
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
-
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... -
CDONTS
CDO.Message see www.aspfaq.com CDONTS has been phased out. the last OS to include it was Windows 2000 -
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... -
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... -
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... -
Roland Hall #2
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
-
Josh Saiz #3
Re: CDONTS vs CDO
been replaced by CDO.>-----Original Message-----
>"RIP" wrote:
>: OK, so obviously cdonts doesnt work with ii6.
>
>Actually, it does. It's just not installed and it hasexplains>
>: 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 thatfeel>: 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?? iwhole slew of links>: dumb asking, but i need help. ty
>
>I went to my google toolbar and typed in CDO How-to. AUS;286431>came up and this was the 2nd on the list:
>[url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]will be useful, but>
>Enjoy!
>
>--
>Roland Hall
>/* This information is distributed in the hope that itof merchantability>without any warranty; without even the implied warranty[url]http://www.microsoft.com/technet/scriptcenter/[/url]>or fitness for a particular purpose. */
>Technet Script Center -[url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]>WSH 5.6 Documentation -[url]http://msdn.microsoft.com/library/default.asp[/url]>MSDN Library -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
-
Roland Hall #4
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



Reply With Quote

