Ask a Question related to Macromedia ColdFusion, Design and Development.
-
junkip #1
CFMAIL - CFIF
Anyone have ideas how i could set up a survey form that emails to different
email addresses depending on what the content of the survey is?
I'm wanting to use CFML and SQL - i think ...
Any help is gratefully welcome !!
Thanks
JP :D
junkip Guest
-
Cfif in CFMAIL
I am using the following to send an email based on information received through a form.: <cfoutput query="mailattachement"><cfset emailimage =... -
Newbie help - CFIF and CFMAIL
I can't figure out why this is not working. I have a form and once the elements of the form is completed, the info is email to me. Basically the... -
<cfmail></cfmail> in a script
I am wondering if I can put <cfmail> tags and code within a javascript script. will the browser recognize it, and perform the instructions? ... -
cfmail - Attribute validation error for tag CFMAIL.
I'm getting the error ' Attribute validation error for tag CFMAIL.' on the code below. All its doing is outputting a text string to the TO: field. ... -
cfif being ignored
I wanted this to only execute if FORM.rp_image does not = defaultImg.gif but it seems to always run. I thought the syntax was okay but maybe not. ... -
BerkTheTurk #2
Re: CFMAIL - CFIF
Sure you can.
You can condition your to:".." attribute within the cfmail tag
For example
<cfmail
from:"myemail@emailcity.com"
to: <cfif form.subject EQ 1>
"youremail1@emailcity.com"<cfelse>"Theiremail@emai lcity.com"</cfif>
subject: "testemail"
</cfmail>
hope this helps
BerkTheTurk Guest
-
dempster #3
Re: CFMAIL - CFIF
I don't think you can use a CFIF condition inside the attributes of a CFMAIL
tag. You could check the condition before sending the email and set a variable
accordingly:
<CFIF condition EQ 1><CFSET tostring = "recip1@mysite.com">
<CFELSE><CFSET tostring = "recip2@mysite.com"></CFIF>
<CFMAIL TO="#tostring#" FROM="webmastr@dickinson.edu" SUBJECT="Test">
-Paul
dempster Guest
-



Reply With Quote

