Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 CDONTS error checking
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

TerryG
Junior Member

United Kingdom
179 Posts

Posted - 26 March 2002 :  09:30:04  Show Profile
I work on an Intranet and I have been using CDONTS a lot to send mail from my asp pages, but I do not know how to check for errors.

How do I find out if the mail was not sent because say a service that CDONTS relies on (SMTP ?)was not working properly.

Similarly what about if the user has input an incorrect e-mail address. I have plenty of client-side validation but if the address is wrong can I get a warning that the mail was not delivered successfully?

Bookie
Average Member

USA
856 Posts

Posted - 26 March 2002 :  13:37:33  Show Profile  Visit Bookie's Homepage  Send Bookie an AOL message  Send Bookie a Yahoo! Message
I'm familiar with this but only on an NT system that ran NT mail as the email server. There were some directories on the C drive (it was locally hosted so I had access to it) that contained the emails that couldn't be sent out. Anything that had an error went into a failed mail folder. I was able to open up the emails that got dumped into it and forward it to the proper individual. If you don't have access to the server you may not have this luxury.

You could always add a Bcc line to your code that sends the email to another email address (your own) without anyone knowing about it. If it fails, you should still get a copy sent to the Bcc address. I hope this helps.

Bookie

"May the forces of evil become confused on the way to your home."
- George Carlin
Go to Top of Page

TerryG
Junior Member

United Kingdom
179 Posts

Posted - 27 March 2002 :  03:51:51  Show Profile
Thanks Bookie, I can get access to the mail server so that will be a good backup plan.

I was hoping to find a way to trap a CDONTS failure or error in my ASP, and then warn the user and/or take other appropriate action. Does anyone know how the Snitz code deals with this? What file should I look in?

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07