CFMAIL - conditional help?
Hi - I have a form that a user submits feedback on a product and it sends an email to three people.
Is it possible to use a some conditional statement that says If product A,B,C and D is selected - send an email to person 1,2, and 3
AND if product E is selected - send email to only person 1,2,3 and 4
my code so far looks like this and the erro that I keep getting is listed below the code
Thank you!
cfinsert datasource="MobWebDataSource" tablename="mobilityFeedback"
formfields="name, email, county, product, description, phone1, phone2, phone3, ext, userComments">
<cfif product= gasTax, RAP, CAPP, FFC >
<CFMAIL FROM="#email#"
TO="q@crab.wa.gov"
CC="p@crab.wa.gov"
BCC="r@crab.wa.gov"
SUBJECT="FEEDBACK REPORT" SERVER="crab13">
<cfoutput>
#name# of #county# County has submitted a Feedback Report to CRAB Information Services.
Phone:(#phone1#) #phone2# - #phone3# ext #ext#
Product: #product#
Description: #Description#
Comments: #userComments#
</cfoutput>
</CFMAIL>
<cfelse>
<CFMAIL FROM="#email#"
TO="u@crab.wa.gov, q@crab.wa.gov, p@crab.wa.gov, r@crab.wa.gov"
SUBJECT="FEEDBACK REPORT" SERVER="CRABMX">
<cfoutput>
#name# of #county# County has submitted a Feedback Report to CRAB Information Services.
Phone:(#phone1#) #phone2# - #phone3# ext #ext#
Product: #product#
Description: #Description#
Comments: #userComments#
</cfoutput>
</CFMAIL>
</cfif>
Invalid CFML construct found on line 85 at column 14. | |
| ColdFusion was looking at the following text: = The CFML compiler was processing:
85 <cfif product= gasTax, RAP, CAPP, FFC > | |
