To be safe, wrap the cfmail and the cfquery in a cftransaction so they will be 
treated as one.

<cftransaction>
   <cfmail>
      message
   </cfmail>
   <cfquery>
      SQL
   </cfquery>
</cftransaction>

That way, just in case you have some problem with the cfmail, you won't falsely 
set emailsent.

Cameron 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3154
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to