One other thing to try for troubleshooting. Turn on mail logging & check the mail.log. If the email is being sent by CF multiple times or to multiple recipients, you should be able to tell from the log.
-- Dawn On Wed, May 23, 2012 at 3:56 PM, Frank Moorman <[email protected]>wrote: > Brooks, > > Not a problem, Trust me, I was looking at the calling page as well. I am > happy there are people on the list willing to help... > > Also, a bad or incomplete explanation is my fault. > > Thanks, > Frank > > > On 05/23/2012 07:45 AM, [email protected] wrote: > > The reason I thought the function may be executing more than once is > because I was not given the calling code - only the function. > > Sincerely, Brooks > > *ADS* develops & supports effiective, efficient and secure software > solutions > * > ------------------------------------------------------------------------------ > * > *Federal Reserve Bank of Atlanta *∙* *Application Delivery Services > 1000 Peachtree Street NE ∙ Atlanta,Georgia ∙ 30309-4470 ( 404-498-8178 > > > > > > From: Frank Moorman > <[email protected]><[email protected]> > To: [email protected], > Date: 05/22/2012 10:01 PM > Subject: Re: [ACFUG Discuss] CF9 email problem > Sent by: [email protected] > ------------------------------ > > > > One interesting thing, I just checked the undelivered log and it was > empty, but It allowed me to set the mail log severity level. I changed it > all the way from warning to debug.... Time to test... > > On 05/22/2012 09:54 PM, Frank Moorman wrote: > Yeah, I'm really stumped by this. I initially thought that I cut and > pasted a "*query=*" attribute into the <cfmail> tag. > > I'm still not sure what is happening. I plan on adding a few <cflog> tags > into the method later tonight, similar to what Brooks mentioned. > > The other weird thing is that the email is sent out a few minutes apart > (one reason why I am considering a possible mail server issue.) But it only > seems to duplicate this specific email, and every time this email is sent, > (but no reports or evidence of any other email on the system.) > > I have a PNG file of the CF admin showing the emails here:* > ** > http://www.moormanappdev.com/ColdFusion%20Administrator_1337736378216.png*<http://www.moormanappdev.com/ColdFusion%20Administrator_1337736378216.png> > > > > On 05/22/2012 07:43 PM, Cheyenne Throckmorton wrote: > I can't imagine why the same function would send multiple of the first and > only one of the second unless maybe your #GetContactInfo.email_address# > statement is returning a comma-delimited list to generate multiple emails > and maybe to the same list. Like its returning > *[email protected]*<[email protected]> > ,*[email protected]* <[email protected]>,*[email protected]*<[email protected]> > ,*[email protected]* <[email protected]> from some kind of a join mix up in > the sql and then your mail setup is spawning off separate emails to each > email in the list despite them all being the same. > > > > On Tue, May 22, 2012 at 3:26 PM, > <*[email protected]*<[email protected]>> > wrote: > 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]*<[email protected]> > > > To: *[email protected]* <[email protected]>, > Date: 05/21/2012 03:21 PM > Subject: [ACFUG Discuss] CF9 email problem > Sent by: *[email protected]* <[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]"*<[email protected]>from=" > *zz.com* <http://zz.com/> *<[email protected]>* <[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]"*<[email protected]>from=" > *zzz.com* <http://zzz.com/> *<[email protected]>* <[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*<http://www.acfug.org?fa=login.edituserform> > > For more info, see > *http://www.acfug.org/mailinglists*<http://www.acfug.org/mailinglists> > Archive @ > *http://www.mail-archive.com/discussion%40acfug.org/*<http://www.mail-archive.com/discussion%40acfug.org/> > List hosted by *http://www.fusionlink.com* <http://www.fusionlink.com/> > ------------------------------------------------------------- > > > ------------------------------------------------------------- > To unsubscribe from this list, manage your profile @ * > **http://www.acfug.org?fa=login.edituserform*<http://www.acfug.org?fa=login.edituserform> > > For more info, see > *http://www.acfug.org/mailinglists*<http://www.acfug.org/mailinglists> > Archive @ > *http://www.mail-archive.com/discussion%40acfug.org/*<http://www.mail-archive.com/discussion%40acfug.org/> > List hosted by *FusionLink* <http://www.fusionlink.com/> > ------------------------------------------------------------- > > ------------------------------------------------------------- > To unsubscribe from this list, manage your profile @ * > **http://www.acfug.org?fa=login.edituserform*<http://www.acfug.org?fa=login.edituserform> > > For more info, see > *http://www.acfug.org/mailinglists*<http://www.acfug.org/mailinglists> > Archive @ > *http://www.mail-archive.com/discussion%40acfug.org/*<http://www.mail-archive.com/discussion%40acfug.org/> > List hosted by *http://www.fusionlink.com* <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 > ------------------------------------------------------------- > > n╤КN▀╖╡ФЛr╦⌡yЗХ ьb╡X╛╤f╖j ╡╒ЙИ╝┤Б∙ФКj ч| ╤÷Ъц qШ═╒╦ h ┌)чv+n╠Йъ╒╧║╤з Ъ > 0iгН┌┼Ю}═╒ ╖yь╜╨г╚~┼ФЩ╕Кn╠h╝j+z)ъ╒г·j ч| ╤÷Ъц qШ═╒╦?≥╗╔┼x%┼кl├шiЪЭ0а╖ > ╨+┐Ы ┼X╖┌X╛╤озn╟+r ╞y╗kyП╤з Ъ 0≥╗╔j╥!┼В°╒oщ┼г.╡х╗÷█ > qШ═╒╦?├шiЪЭ0бf╒∙╙э├+чr┴©v+ ╨к"╒~4iгН┌┼ЮЪЖ⌡╛╦╛╤ ,╣Г[и╗kyП╤з Ъ > 0~К"╒yb·G(≤[╛┼┴к┼y?abr= > > ------------------------------------------------------------- > To unsubscribe from this list, manage your profile @ > http://www.acfug.org?falogin.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 > ------------------------------------------------------------- >
