Documentation

Learn how Enso Cloud can power your custom designed website.

Email Forms

Building an email form mailer is pretty straight forward.
  1. Create a standard form with a <form> tag and <inputs>.
  2. Set the form action to "/_enso_cms/services/form-mailer.aspx"
  3. Create as many <inputs> as you wish
  4. Set the name attribute for each <input> which will be used as headers in the email.
  5. Set the required hidden <inputs> as seen below.
You can either hard-code your form directly into a layout or paste into a content area using the Insert Embed Code button in the HTML content editor.

Example Form Mailer Elements
<form id="contact" method="post" action="/_enso_cms/services/form-mailer.aspx">
Name<br />
<input type="text" name="Name" /><br />
<br>
Phone<br />
<input type="text" name="Phone" /><br />
<br>
Email<br />
<input type="text" name="Email" /><br />
<br />
Comment<br />
<input type="text" name="Comment" /><br />
<br>
<input type="submit" name="submit" value="Submit" />
<input type="hidden" name="emailNotification" value="[email protected]" />
<input type="hidden" name="emailNotificationSubject" value="New Request" />
<input type="hidden" name="redirectURL" value="http://domain.com/thank-you/" />
</form>
Note: The form will set the reply-to address to your form input named 'email'.

Required Elements

Form Element
The form tag with action is required and wraps your input fields.
<div><form id="contact" method="post" action="/_enso_cms/services/form-mailer.aspx">
...
</form></div>

Submit Button 
The submit button is required. You can change the value attribute to set the text of the button.
<input type="submit" name="submit" value="Submit" />
Email Notification (Hidden Input)
The email notification input is required and sets the email address where the form will be sent.
<input type="hidden" name="emailNotification" value="[email protected]" />
Email Subject (Hidden Input)
This email subject input is required and will set the subject line of the email.
<input type="hidden" name="emailNotificationSubject" value="New Request" />
Redirect URL (Hidden Input)
The redirect url input is required and sets the page the form will redirect to after submitting the form.
<input type="hidden" name="redirectURL" value="http://domain.com/thank-you/" />