Skip to content

Instantly share code, notes, and snippets.

@ronnieduke
Created May 6, 2014 18:26
Show Gist options
  • Save ronnieduke/6841ead1b96b89410d73 to your computer and use it in GitHub Desktop.
Save ronnieduke/6841ead1b96b89410d73 to your computer and use it in GitHub Desktop.
How to send a copy of a Mura form to the form submitter
<!--- Drop this into your site eventhandler.cfc --->
<cffunction name="onAfterFormSubmitSave" output="true">
<cfif $.event('formid') EQ '{ID of the Mura form}'>
<!--- Get the form result --->
<cfset formBean = $.event().getValue('formresult')>
<cfmail
from = "e-mail address"
to = "#formBean.EMAIL#"
subject = "Thank you!"
type="HTML">
<p>Thank you for your form submission</p>
<p>You submitted the following:</p>
<p>
#formBean.NAME#<br>
#formBean.TITLE#<br>
etc, etc
</p>
</cfmail>
</cfif>
</cffunction>
@susanch
Copy link

susanch commented May 12, 2014

thank you for this gist. it was very helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment