Thanks so much to all and to Mike and William, I will be putting your advice on the top of my list of things to do. The list in question has approximately 5,500 names but, by the time it is cleaned up, will probably be closer to 5,000.
The idea of not disturbing subscribers unnecessarily is most attractive. Thanks again. Dave -----Original Message----- From: William Seiter [mailto:will...@seiter.com] Sent: Thursday, April 2, 2015 7:32 PM To: cf-talk Subject: RE: Handling invalid recipient in mailing list Dave, You could have your code 'automatically' scrub the list and use a 'log' to keep track of the changes. This way you won't have to do a test run. Also, you could set up your code on a 'dummy' email server that will send the email but trap it prior to being mailed, this way you don't have to bother your recipients list. Also, you could create an email validation loop so that you can 'verify' the list without the concern for sending an email out at all (instead of doing a 'cfmail' tag, you would do the validation of the email address). I don't know how large your recipient's list is, but I would try to not bother them with testing emails. Just my 2 pence, William ---------------------------------- William Seiter -----Original Message----- From: Dave Long [mailto:d...@northgoods.com] Sent: Thursday, April 02, 2015 3:55 PM To: cf-talk Subject: RE: Handling invalid recipient in mailing list Thanks to all. The scheme worked perfectly. Next I will have to warn my recipients that a test is coming so I can remove invalid recipients. Unless maybe you can suggest a method to delete them as they occur. I intend to add a confirmation message requirement to our contact form, which should have been there all along, but a means of automatically cleaning the existing mailing list would help everyone... me most of all though. Thanks again for your help. Dave Long -----Original Message----- From: Rick [mailto:cfh...@kchost.net] Sent: Thursday, April 2, 2015 5:20 PM To: cf-talk Subject: RE: Handling invalid recipient in mailing list <cftry> Run you CFMAIL.. <cfcatch>Mark email bad in database</cfcatch> </cftry> -----Original Message----- From: Dave Long [mailto:d...@northgoods.com] Sent: Thursday, April 02, 2015 5:12 PM To: cf-talk Subject: Handling invalid recipient in mailing list I am trying to send a mass mailing to a somewhat carelessly created list of contacts using e-mail addresses which were not verified at the time of entry. Whenever the cfloop tag comes to an erroneous recipient, it quits and throws an error. Is there anything I can do to the code to make it keep going? Here's the code: <CFLOOP list="#Form.SelectedRecipients#" index="Recipient"> <CFMAIL from="#Form.Sender#" to="#Recipient#" subject="#Form.Subject#" type="HTML" > <html><head><link rel="stylesheet" href="http://www.northgoods.com/global.css" type="text/css" /></head><body bgcolor="black"> <table width=800 align="center"> <TR> <TD align="center" colspan=2> <table width=800 align="center" border="4" cellpadding="10" bgcolor="black"><tr><td> <strong><font face="Arial" size="+1" color="##FF6600"> #Form.Message# </font></strong> </td></tr></table> <table align="center"> <tr><th colspan="2"><strong><font face="Arial" size="-1" color="##FF6600">If you would like to be removed from<br>our mailing list, please click here:</font></strong><br> <a href="http://www.northgoods.com/unsubscribe.cfm?delEmail=#Recipient#" title="UNSUBSCRIBE"><font face="Arial" size="-1" color="white"><strong>UNSUBSCRIBE</strong></font></a><br> <font face="Arial" size="-1" color="##FF6600">You will receive one last message from us to confirm your removal from our list.</font></strong></th></tr> </TABLE></body></html> </CFMAIL> </CFLOOP> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360357 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm