CFMail
I'm developing a form that should email on submit. Without the <cfif> statements around the code below, the email is generated when the web page loads. When I add the <cfif> as shown below the email is not generated at all. Can someone please tell me what I'm doing incorrectly?
Thank you in advance.
Sue
<cfif IsDefined("Form.submit")>
<cfmail to="abc@xyz.com" from="me@rst.com"
subject="Registration">
</cfmail>
</cfif>
