I've seen this before. I can't remember if I ever found a work-around or not. You can set a variable in the catch block, then call the cfmail tag after you are done looping.
It would make a little more sense to send a single email with all the errors than an email for each error. Just as Matt said previously. -----Original Message----- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, February 10, 2005 7:09 PM To: CF-Talk Subject: Re: cftry/cfcatch around cfmail sup barney... thats what ive got... <cfquery name="GetPartnerEmailAddresses" datasource="#usersDatasource#"> select email from regions where email like '[EMAIL PROTECTED]' </cfquery> <cfloop query="GetPartnerEmailAddresses"> <cftry> <cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" subject="Test, please disregard" spoolenable="No">This is a test, please disregard.</cfmail> This worked! <cfcatch type="Any"> <cfmail to="[EMAIL PROTECTED]" from="TheWebsite" subject="Email Manager Error" spoolenable="No">This error happened on #DateFormat(Now(),'mm/dd/yyyy')# Here is what happened: Message: #cfcatch.message# Detail: #cfcatch.detail# </cfmail> This didnt work. </cfcatch> </cftry> </cfloop> and what happens is... it looks like its worked, as i see 10 "This worked" on the screen, and only one "This didnt work", but @ the bottom of the screen in the debugging output, and exception error... and no emails go out at all :( ? tw ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194163 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

