ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 17th, 2003, 03:26 PM
whyzz whyzz is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 3 whyzz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Invalid Class Object error using CDONTS

I want to send a confirmation email automatically (without a second page and button to click) to a subscriber when she signs up for my newsletter. I am using a form and FrontPage generated ASP to save the information to a database, and that part works.
Now I need to get the address from the form and send email to it.

When I use the following:

Quote:
Set objCDO = Server.CreateObject("CDONTS.NewMail")


I get an invalid class error. I am running IIS 6 on my local machine that I use for testing, and it has SMTP installed and running.


Reply With Quote
  #2  
Old July 17th, 2003, 05:59 PM
numbernine numbernine is offline
Up To His Eyes In Ads
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Chicago
Posts: 160 numbernine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 25 sec
Reputation Power: 7
I had a similar problem when moving to IIS 6 / Windows 2003

http://www.devarticles.com/forum/sh...=&threadid=3568

"Microsoft is using a new progID of the DLL used to send mail through CDO (CDONTS.NewMail is being shuffled out)" (from http://www.aspfaq.com/show.asp?id=2026)

Long story short, you need to copy the cdonts.dll from a Windows 2000 box and register it or rewrite your code.

Reply With Quote
  #3  
Old July 22nd, 2003, 12:54 PM
whyzz whyzz is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 3 whyzz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy CDONTS

Thanks. I've been reading about CDOSYS and since my code isn't working anyway, I'll look for a bigger hammer.

Reply With Quote
  #4  
Old July 26th, 2003, 11:51 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
I'd def recommend learning CDOSYS. I've used it recently and it is about a gazillion times more powerful than CDONTS (which, lets face it, sucked for anything more complicated than sending one simple email). CDOSYS is also 5 times faster, and interfaces nicely with exchange (i.e. better messaging capabilities). You have control over which SMTP u wanna use, you can queue messages (for mass mailing)...etc... the list goes on.

Here's an article on making the transition

Reply With Quote
  #5  
Old July 28th, 2003, 09:42 AM
whyzz whyzz is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 3 whyzz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cool

Thanks for the article. It cleared up several things.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Invalid Class Object error using CDONTS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT