IIRC, CFMAIL accepts an empty string in the CC column, so you could simply set a var to the email if you want to CC someone, or the empty string if not.
Not double-checked, YMMV, etc, etc, etc. --Ben Claremont, Timothy wrote: > 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 > ********************************************************************** > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get the mailserver that powers this list at http://www.houseoffusion.com/banners/view.cfm?bannerid=17 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189528 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