<cfset cfmail_to = "[EMAIL PROTECTED]">
<cfif isDefined("IncludeRequestor")>
        <cfset cfmail_to = cfmail_to & ", [EMAIL PROTECTED]">
</cfif>

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

That looks like it would work to me...

-----Original Message-----
From: Claremont, Timothy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 06, 2005 9:51 AM
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
**********************************************************************




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189523
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