Frank: Try adding some debugging code. I would add a <cfdump/> at the beginning and end of the function body. This would tell me that the function is starting and ending as you expect. What may be happening is that the function begins, sends the first email and then abnormally terminates. Then the calling program calls the function again and this pattern is repeating 4 more times. Finally on the 6th try, the function completes as expected.
Sincerely, Brooks From: Frank Moorman <[email protected]> To: [email protected], Date: 05/21/2012 03:21 PM Subject: [ACFUG Discuss] CF9 email problem Sent by: [email protected] All, I am having an email problem... My system is sending out about a dozen of the first email yet only one of the second. (I only want one of each.) The system is CF9 and it has happened a few times. (Every time since it was implemented this weekend.) I tried to find any type of loop or query and I stunned... I considered the possibility that it is a mail server problem yet no other email seems to be affected and the site hosts two separate CF applications with many different emails from both. I have copied the code in its entirety here just removing the identifying information... The component call executes a database query which returns a single row. <cffunction access="public" name="zzz" output="false" returntype="void" hint="sends an email."> <cfargument name="RequestUUID" type="string" required="true"> <cfset var GetContactInfo = ''> <cfinvoke component="contacts" method="GetContactRequest" returnvariable="GetContactInfo"> <cfinvokeargument name="ContactId" value="#arguments.RequestUUID#"> </cfinvoke> <cfmail to="#GetContactInfo.email_address#" cc="[email protected]" from="zz.com <[email protected]>" subject="zzz Correspondence" type="text"> Customer, Your request has been sent ...blah... blah... blah... #GetContactInfo.contractor_phone#. blah... blah... blah...#GetContactInfo.contractor_first_name# #GetContactInfo.contractor_last_name#. </cfmail> <cfmail to="#GetContactInfo.contractor_email#" cc="[email protected]" from="zzz.com <[email protected]>" subject="CUSTOMER REQUEST" type="text"> blah... blah... blah... CUSTOMER INFORMATION: Name: #GetContactInfo.first_name# #GetContactInfo.last_name# Address: #GetContactInfo.street_address# City, State: #GetContactInfo.city#, #GetContactInfo.state# #GetContactInfo.zip_code# </cfmail> <cfreturn> </cffunction> ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
