Re: CFIF within CFmail?

2010-02-23 Thread Orlini, Robert
Thankls Aaron. RO -Original Message- From: Aaron Neff w...@itisdesign.com Sent: Tuesday, February 23, 2010 12:05am To: cf-talk cf-talk@houseoffusion.com Subject: Re: CFIF within CFmail? Hi Robert, Just adding another option.. cfmail to=t...@domain.com from=f...@domain.com cc

RE: CFIF within CFmail?

2010-02-22 Thread Ben Forta
Try this: cfset arguments=StructNew() cfset arguments.from=FORM.email cfif form.intype=K-12 cfset arguments.cc=te...@test2.com /cfif cfmail attributeCollection=arguments ... /cfmail -Original Message- From: Orlini, Robert [mailto:rorl...@hwwilson.com] Sent: Monday, February 22,

Re: CFIF within CFmail?

2010-02-22 Thread Jake Churchill
first of all, your cfif syntax is incorrect... Here's what I'd do: cfparam name=ccEmail default= / cfif form.inttype eq K-12 cfset ccEmail = te...@test2.com / /cfif cfmail from=#FORM.email# to=t...@test.com cc=#ccEmail# Subject=New Jersey !--- EMAIL CONTENTS HERE --- /cfmail This is

Re: CFIF within CFmail?

2010-02-22 Thread I. Addoum.
that will not work ... you should have your CFIF before the cfmail tag cfif form.intype EQ K-12CFSET V_cc=te...@test2.com CFELSE CFSET V_cc= /Cfif CFMAIL from=#FORM.email# To=t...@test.com cc=#V_cc#Subject=New Jersey From: Orlini, Robert

RE: CFIF within CFmail?

2010-02-22 Thread Eric Nicholas Sweeney
I usually do this Before the CfMail... cfparam name=variable.CCEmail Default= cfif form.intype EQ K-12 cfset variable.CCEmail = te...@test2.com /cfif CFMAIL from=#FORM.email# To=t...@test.com cc=#variable.CCEmail# Subject=New Jersey Your Mail /cfmail Hope that Helps! - Nick

RE: CFIF within CFmail?

2010-02-22 Thread LRS Scout
cfif form.intype is K-12 cfset myCC = t...@test2.com cfelse cfset myCC = /cfif cfmail to=t...@test.com cc=#myCC# subject=New Jersey /cfmail Couple of things here. 1. Try not to use tags inside tags. It's hard to read. 2. You don't need pound signs (#) inside CF tags

RE: CFIF within CFmail?

2010-02-22 Thread LRS Scout
Eww sexy -Original Message- From: Ben Forta [mailto:b...@forta.com] Sent: Monday, February 22, 2010 10:02 AM To: cf-talk Subject: RE: CFIF within CFmail? Try this: cfset arguments=StructNew() cfset arguments.from=FORM.email cfif form.intype=K-12 cfset arguments.cc=te...@test2

RE: CFIF within CFmail?

2010-02-22 Thread Dave Phillips
/Cfif Subject=New Jersey -Original Message- From: I. Addoum. [mailto:sol_xp...@yahoo.com] Sent: Monday, February 22, 2010 9:03 AM To: cf-talk Subject: Re: CFIF within CFmail? that will not work ... you should have your CFIF before the cfmail tag cfif form.intype EQ K-12CFSET V_cc=te

RE: CFIF within CFmail?

2010-02-22 Thread Dave Phillips
Phillips [mailto:experiencedcfdevelo...@gmail.com] Sent: Monday, February 22, 2010 9:23 AM To: 'cf-talk@houseoffusion.com' Subject: RE: CFIF within CFmail? Actually, that's not true. You can easily put CFIF inside of your cfmail tag. I've done it for 12+ years! Your only problem was that you used

Re: CFIF within CFmail?

2010-02-22 Thread Maureen
Should be: cfif #form.intype# eq K-12cc=te...@test2.com/Cfif On Mon, Feb 22, 2010 at 6:57 AM, Orlini, Robert rorl...@hwwilson.com wrote: cfif #form.intype#=K-12cc=te...@test2.com/Cfif It generates an error. Is there a better way to do this?

Re: CFIF within CFmail?

2010-02-22 Thread Claude Schnéegans
You can easily put CFIF inside of your cfmail tag. You can have CF statements between the opening CFMAIL tag and the closing /CFMAIL, or inside an HTML tag, but never embedded inside another CF tag. ~| Want to reach the

Re: CFIF within CFmail?

2010-02-22 Thread Dave Watts
I'm trying to include a cfif within a cfmail. If a form element is K-12, then I want to add a cc to the cfmail part. Here is what I have in part: CFMAIL from=#FORM.email# To=t...@test.com cfif #form.intype#=K-12cc=te...@test2.com/Cfif Subject=New Jersey It generates an error. Is there

Re: CFIF within CFmail - resolved

2010-02-22 Thread Orlini, Robert
Thank you all for the coding advice and code tidbits. It works now and I have a better idea of what to do and not do with CFMail. I know why I like this list! RO HWW ~| Want to reach the ColdFusion community with something

Re: CFIF within CFmail?

2010-02-22 Thread Aaron Neff
Hi Robert, Just adding another option.. cfmail to=t...@domain.com from=f...@domain.com cc=#((FORM.inputType is 'K-12') ? 'c...@domain.com' : '')# subject=subjectmessage/cfmail Thanks!, -Aaron I'm trying to include a cfif within a cfmail. If a form element is K-12, then I want to add a cc