Re: Conditional CC in email
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: > > from="The Website" > subject="Data Change Request" > replyto="[EMAIL PROTECTED]" > type="HTML"> > Blah blah blah > > > > 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: > > > > from="The Website" >("IncludeRequestor")>cc="RequestorEmail"> > subject="Data Change Request" > replyto="[EMAIL PROTECTED]" > type="HTML"> > Blah blah blah > > > 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
RE: Conditional CC in email
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. Blah blah blah /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: > >from="The Website" >subject="Data Change Request" >replyto="[EMAIL PROTECTED]" >type="HTML"> > Blah blah blah > > > >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: > > > >from="The Website" > ("IncludeRequestor")>cc="RequestorEmail"> >subject="Data Change Request" >replyto="[EMAIL PROTECTED]" >type="HTML"> > Blah blah blah > > >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
RE: Conditional CC in email
Blah blah blah 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: Blah blah blah 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: cc="RequestorEmail"> subject="Data Change Request" replyto="[EMAIL PROTECTED]" type="HTML"> Blah blah blah 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
Re: Conditional CC in email
You can nest a CFML tag inside an HTML tag, but not in another CFML tag. One way: Blah blah blah Another way (to me more readable): Blah blah blah --- "Claremont, Timothy" <[EMAIL PROTECTED]> wrote: > Currently my email is done like this: > > from="The Website" > subject="Data Change Request" > replyto="[EMAIL PROTECTED]" > type="HTML"> > Blah blah blah > > > > 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: > > > > from="The Website" >("IncludeRequestor")>cc="RequestorEmail"> > subject="Data Change Request" > replyto="[EMAIL PROTECTED]" > type="HTML"> > Blah blah blah > > > 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:189522 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
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. Blah blah blah /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: > >from="The Website" >subject="Data Change Request" >replyto="[EMAIL PROTECTED]" >type="HTML"> > Blah blah blah > > > >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: > > > >from="The Website" > ("IncludeRequestor")>cc="RequestorEmail"> >subject="Data Change Request" >replyto="[EMAIL PROTECTED]" >type="HTML"> > Blah blah blah > > >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:189520 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