your
best choice would be to validate the emails without trying to send them out, but
if you must go that route, you could try something like
<cftry>
<!--- cfmail stuff goes here --->
<!--- cfmail stuff goes here --->
<cfcatch type="Application">
<cfif not cfcatch.name is "to">
<!--- do whatever failure stuff you wanted to do --->
</cfif>
</cfcatch>
</cftry>
<cfif not cfcatch.name is "to">
<!--- do whatever failure stuff you wanted to do --->
</cfif>
</cfcatch>
</cftry>
-----Original Message-----
From: Chris Holdman [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 1:28 PM
To: '[EMAIL PROTECTED]'
Subject: [KCFusion] cfmail validation in MXI have a database full of emails, unfortunately some of them are bad emails (ex: [EMAIL PROTECTED] no.com).I have a script that is mailling out to the entire database, when I was using CF4.0 it would just throw the bad emails into the undeliverable folder. However when I run the script now with MX it gives me a cfmail error because it appears that CFMX is doing email validation and gives an error for bad emails...is there a way to force CF to just throw those bad emails in the undeliverable forlder so I can loop through me entire db?Christopher V. HoldmanWebmaster - City of Olathework: 913.971.6286cell: 913.238.4681