Chad wrote:
> 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?
Loop over all the To's. Don't put them all in the To field.
 
<cfloop index="ToEmails" list=#ListofEmails#">
<cfmail to="#ToEmails#" from="[EMAIL PROTECTED]" subject="email">
content
</cfmail>
You may also want to do some email validation.
 
~David Moore
 
_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:312180
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to