Clint,
You need to go to the CF reference documentation and check out CFTRY and
CFCATCH. You can use that to literally 'skip' those people who have put in
invalid e-mail addresses. Your syntax would be something like this:
<CFTRY>
<CFMAIL> ... </CFMAIL>
... whatever processing you want to occur when the CFMAIL is successful
...
<CFCATCH (with parameters)
... whatever processing you want to occur when the CFMAIL (or
your other processing above the CFCATCH) FAILED ...
</CFCATCH>
</CFTRY>
As for the difference between Request and Exception errors... documentation:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001138.htm
Here's another good page for you:
http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/Errors3.htm
-----Original Message-----
From: Clint Stanger [mailto:[EMAIL PROTECTED]
Sent: Monday, July 25, 2005 6:34 PM
To: CF-Newbie
Subject: RE: Application Error Emails
I think maybe I just don't know the difference between a request error and an
exception error. Could someone explain that?
The reason I'm confused: Recently I had a problem with an address text feild.
People kept putting # in it for their apt. number. I put some code in place to
check for and remove any char. that I don't want. However, until I did that
the app. would throw a request error with absolutly no usable debugging. And
worst of all, it wouldn't send me an email.
Currently I have another app. that runs through a DB table full of stored
emails (rows include: to, from, subject, body, DTS). This is ran by a
scheduled task every hour. What happens when a user wants to use 2 email
addys? They put in two email addys w/out seperating them, thus breaking my
scheduled process. grrrr. But, until I set up a try/catch solution, I had no
way of knowing that they had done that until A. my users start complaingin or
B. I check it every hour or so.
I just thought it would be a hell of a lot easier to setup something in my
application.cfm file that sends me an email for every error message thrown by
any user at any time. I could also use this to detect early on if I had
something broken that I wasn't able to catch in the debugging process.
Thank you,
Clint
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Now thereâs a better way to fax. eFax makes it possible to use your existing
email account to send and receive faxes. Try eFax free.
http://www.houseoffusion.com/banners/view.cfm?bannerid=63
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1335
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54