Do you mean you are using cfmail's query attribute, or you are using a
cfloop over a query result set with a cfmail inside of it? Seems like
the latter but I thought I'd better ask. If the former its going to
hit the try/catch and that'll be the end of the cfmail operation, I
believe.
Here's a chopped-down version of what I use. The catch file does
essentially what you described, although it stores all errors to a db
and emails the lot in one shot at the end of the run.
<cfloop
query="Addresses"
startrow="1"
endrow="#variables.RunRate#">
<cftry>
<cfmail
to="#Addresses.InclEmailAddr#"
from="#session.Trickler.myEmail#"
subject="#session.Trickler.MsgTitle#"
server="#Settings.myEmailServer#"
type="HTML">
#session.Trickler.PageText#
</cfmail>
<cfcatch type="Any">
<cfinclude template="includes/inc_errcatch_mail.cfm">
</cfcatch>
</cftry>
</cfloop>
--
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194157
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