Email Forms
Building an email form mailer is pretty straight forward.
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'.
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/" />
- Create a standard form with a <form> tag and <inputs>.
- Set the form action to "/_enso_cms/services/form-mailer.aspx"
- Create as many <inputs> as you wish
- Set the name attribute for each <input> which will be used as headers in the email.
- Set the required hidden <inputs> as seen below.
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 ElementThe 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/" />