> Hello, I am using CFMail to send an email and if one of the 
> email addresses in the TO attribute does not exists then no 
> one in the TO attribute gets the email.  It sits in the 
> undelivered folder.
> 
> "Error","scheduler-5","09/08/08","10:17:32",,"Invalid 
> Addresses;   nested exception is:     class 
> javax.mail.SendFailedException: 550 5.1.1 Mailbox 
> <[EMAIL PROTECTED]> does not exist "
> 
> How can I avoid this.  I want everyone to get the email even 
> if one of the email addresses does not exist.
> 
> I have the emails separated by commas in the TO attribute.  
> Should I not do this?

Unfortunately, I don't think there's anything you can do about this if you
specify multiple addresses in a single email. My understanding is that
JavaMail, the functionality that CF uses to send mail, works like that.

There are two workarounds that I can think of. One is to send individual
messages to each recipient. Another is to catch the exception and modify the
address list as appropriate. Unfortunately, if you have two bad addresses,
you'd need to catch them twice, etc.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312186
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to