Thanks for the reply Tom, Are you talking about one thread for all the cfmails (outside the loop), or one for each mail? I'm assuming the latter wouldn't be a good plan where there might be thousands of emails, particularly on CF8 Standard.
Also, with the former option, if the thread was named then I could presumably check that a thread of that name wasn't already running and not run the code if it was - my thinking was this could help deal with double clicks on the submit button. I'm looking at this at the moment. I'm still not convinced that the duplicated emails were caused by the user double clicking though. Cheers Will -----Original Message----- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: 27 November 2007 16:15 To: CF-Talk Subject: Re: CF8 and CFmail, sending duplicate emails On Tuesday 27 Nov 2007, Will Swain wrote: > will look at implementing something that prevents this from happening > - I'm think CFTHREAD is perfect here. Anyone have any thoughts on this? Yes, CFTHREAD the sending assuming the mail server can handle it. A simple thing to do for the button is use javascript to disable it onClick. 'course, if javascript is disabled there isn't much you can do except embed a one-time token in the form, and invalidate the token the first time it is used. -- Tom Chiverton Helping to enthusiastically participate market-driven communities on: http://thefalken.livejournal.com **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293882 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4