Howard Owens wrote:
> Um, search didn't work ...  that's why I asked.

oh, you didn't say it didn't work, you said you couldn't find out how to 
do it.  It worked for me when I tried it before posting.

> Also, I know it's an SMTP error ... that's why I'm trying to catch it so that 
> the app won't choke when it hits a bad e-mail address ... you know, for the 
> purpose of this application, I really wish CF wouldn't try to validate e-mail 
> addresses for me ... application worked fine for four or five years on our 
> old 4.0 server ... now forced to CFMX server (something I actually begged for 
> for years) and now I'm complainling <g>

cfmail will choke when it hits a bad email address that is poorly 
formatted.  You should be able to try/catch that.

However, you're not getting that 550 error in the typical "Error 
occurred while processing request" are you?  That's just in the mail 
logs, right?  You can't trap for that with cfmail because cfmail isn't 
actually erroring.

What you want to do is verify every email address you send to cfmail 
using the built-in isValid() function or a cflib function like 
isValidEmail().  If you're using a query, then you'll have to make sure 
the email addresses in the database are formatted properly.  But like I 
said you ought to be able to try/catch for these anyway.


Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242199
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

Reply via email to