How can I configure FormMail?

Updated 2 months ago by Josselyn Rodriguez

Note: this is only an example of how FormMail can be used using a sample code. For more resources, please check FormMail's site.

  1. Replace example.com with your own domain name.
  2. Replace email@example.com with your own email address.
  3. Create a web page where users will be redirected after the email is sent and replace this URL with your new page: http://www.example.com/confirm.html
  4. Finally, create a page where your visitors will be redirected when an error occurs, and replace this URL with your new page: http://www.example.com/error.html
<form method="post" action="http://www.example.com/cgi-bin/FormMail.pl" 
accept-charset="ISO-8859-1" onsubmit="var originalCharset = document.charset;
document.charset = 'ISO-8859-1';
window.onbeforeunload = function () {document.charset=originalCharset;};">
Name
<br />
<input name="realname" />
<br />
Email
<br />
<input name="email" />
<br />
Message
<br />
<textarea cols="40" rows="10" name="Message"></textarea>
<br />
<input type="submit" value="Send" />
<input type="hidden" name="recipient" value="email@example.com" />
<input type="hidden" name="subject" value="Subject" />
<input type="hidden" name="redirect"
value="http://www.example.com/confirm.html" />
<input type="hidden" name="missing_fields_redirect"
value="http://www.example.com/error.html" />
<input type="hidden" name="required" value="realname,email,Message" />
</form>

Having trouble? Contact us and our team will be happy to help.


How did we do?