Instead of including a CC in CFMAIL, just use CFMAILPARAM name="CC"
value="address"

Then you can wrap those in CFIF's inside CFMAIL.

This should work, since it mucks with mail headers, but I must admit
I've never tried it myself.

HTH,
-dov

-----Original Message-----
From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 06, 2005 11:00 AM
To: CF-Talk
Subject: RE: Conditional CC in email

Does it *have* to be in the CC field? If not (ie you don't mind if the
requestor is in the "to" field, then build up the to field as a list of
email addresses. 

<cfset tolist = "[EMAIL PROTECTED]">

<cfif IsDefined("IncludeRequestor")>
        <cfset tolist = ListAppend(tolist,RequestorEmail)>
</cfif>

<cfmail to="#tolist#"
        from="The Website"
        subject="Data Change Request"
        replyto="[EMAIL PROTECTED]"
        type="HTML">
                Blah blah blah
</cfmail>


/t
>-----Original Message-----
>From: Claremont, Timothy [mailto:[EMAIL PROTECTED]
>Sent: Thursday, January 06, 2005 4:51 PM
>To: CF-Talk
>Subject: Conditional CC in email
>
>
>Currently my email is done like this:
>
><cfmail to="[EMAIL PROTECTED]"
>        from="The Website"
>        subject="Data Change Request"
>        replyto="[EMAIL PROTECTED]"
>        type="HTML">
>               Blah blah blah
></cfmail>
>
>
>What is the elegant way to CC a recipient if the requesting form has a 
>checkbox that says "IncludeRequetor"? The following does not seem to be
>working:
>
>
>
><cfmail to="[EMAIL PROTECTED]"
>        from="The Website"
>               <cfif IsDefined
>("IncludeRequestor")>cc="RequestorEmail"><cfif>
>        subject="Data Change Request"
>        replyto="[EMAIL PROTECTED]"
>        type="HTML">
>               Blah blah blah
></cfmail>
>
>TIA,
>Tim
>**********************************************************************
>This email and any files transmitted with it are confidential and 
>intended solely for the use of the individual or entity to whom they 
>are addressed. If you have received this email in error please delete 
>it from your system.
>
>This footnote also confirms that this email message has been swept for 
>the presence of computer viruses.
>
>Thank You,
>Viahealth
>**********************************************************************
>
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189526
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to