By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,275 Members | 2,032 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,275 IT Pros & Developers. It's quick & easy.

Server.CreateObject("CDONTS.NewMail") Problem

P: n/a
What do I need to do to enable CDONTS om my macine to make it working

I'm testing the code:

Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = "xy*@xxxxx.com"
objCDO.From = "zy*@zzzzz.com"
objCDO.Subject = "TESST CDONTS MAIL"
objCDO.Body = "SOME TEXT TO SEND OVER"
objCDO.Send
Set objCDO = Nothing

It gives me an error after Set objCDO =
Server.CreateObject("CDONTS.NewMail")
Server object, ASP 0177 (0x800401F3)
Invalid class string
Jan 9 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Here's a nice CDO link even if you don't use the attachment part:
Email (with Attachment)
http://www.asp101.com/samples/email_attach.asp

And CDO is generally used instead of CDONTS on IIS 5 and after
(actually the SMTP service within IIS) which is generally on servers
after Win NT4 (although I think CDONTS is sometimes still supported
too).

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips

Jan 9 '06 #2

P: n/a
and this example shows many ways of using cdosys instead of just using the
smtp pickup from the smtp server which might not be running

http://www.powerasp.com/content/new/...ail_cdosys.asp


<pa**@bullschmidt.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Here's a nice CDO link even if you don't use the attachment part:
Email (with Attachment)
http://www.asp101.com/samples/email_attach.asp

And CDO is generally used instead of CDONTS on IIS 5 and after
(actually the SMTP service within IIS) which is generally on servers
after Win NT4 (although I think CDONTS is sometimes still supported
too).

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips

Jan 10 '06 #3

P: n/a
On Mon, 9 Jan 2006 15:06:53 -0800, "MichaelK" <mi******@gomobile.com>
wrote:
What do I need to do to enable CDONTS om my macine to make it working

I'm testing the code:

Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = "xy*@xxxxx.com"
objCDO.From = "zy*@zzzzz.com"
objCDO.Subject = "TESST CDONTS MAIL"
objCDO.Body = "SOME TEXT TO SEND OVER"
objCDO.Send
Set objCDO = Nothing

It gives me an error after Set objCDO =
Server.CreateObject("CDONTS.NewMail")
Server object, ASP 0177 (0x800401F3)
Invalid class string


1) USE CDO, CDONTS is deprecated.

2) CDONTS doesn't exist on Server 2003

3) See: http://www.4guysfromrolla.com/webtech/112298-1.shtml

Jeff
Jan 10 '06 #4

P: n/a
Thanks Kyle.
This is a good one, I'm talking about method 3 on this page.

All others suggested samples didn't work for me by some reason.
Michael

"Kyle Peterson" <ky*****@hotmail.com> wrote in message
news:uA**************@TK2MSFTNGP15.phx.gbl...
and this example shows many ways of using cdosys instead of just using the
smtp pickup from the smtp server which might not be running

http://www.powerasp.com/content/new/...ail_cdosys.asp


<pa**@bullschmidt.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Here's a nice CDO link even if you don't use the attachment part:
Email (with Attachment)
http://www.asp101.com/samples/email_attach.asp

And CDO is generally used instead of CDONTS on IIS 5 and after
(actually the SMTP service within IIS) which is generally on servers
after Win NT4 (although I think CDONTS is sometimes still supported
too).

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips


Jan 10 '06 #5

P: n/a
your welcome, in my opinion that is one of the better CDOSYS articles
available on the web...
to the point and shows some different examples of various emailing sending
methods with CDOSYS

CDOSYS is very flexible..

"MichaelK" <mi******@gomobile.com> wrote in message
news:u5**************@TK2MSFTNGP14.phx.gbl...
Thanks Kyle.
This is a good one, I'm talking about method 3 on this page.

All others suggested samples didn't work for me by some reason.
Michael

"Kyle Peterson" <ky*****@hotmail.com> wrote in message
news:uA**************@TK2MSFTNGP15.phx.gbl...
and this example shows many ways of using cdosys instead of just using
the smtp pickup from the smtp server which might not be running

http://www.powerasp.com/content/new/...ail_cdosys.asp


<pa**@bullschmidt.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Here's a nice CDO link even if you don't use the attachment part:
Email (with Attachment)
http://www.asp101.com/samples/email_attach.asp

And CDO is generally used instead of CDONTS on IIS 5 and after
(actually the SMTP service within IIS) which is generally on servers
after Win NT4 (although I think CDONTS is sometimes still supported
too).

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips



Jan 10 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.