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
-------------------------------------------------------------

Reply via email to