Sending mail with HTML forms & FormMail.pl
Any text or HTML editor.
What is it? FormMail is a generic www form to e-mail
gateway (cgi), which will parse the results of an HTML form
and send them to a specified user(s). This script has many
formatting and operational options, most of which can be specified
through the form, meaning you don't need any programming knowledge
or multiple scripts for multiple forms.
Secure email with PGP and FormMail
Step 1: Determine your platform.
UNIX: If your site is hosted on the UNIX platform,
you will need to request the formmail script for your cgi-bin.
Please send an email to email@example.com with your
Win NT: If your site is hosted on the NT platform,
you will need to use the form provided by FrontPage which
uses "web bots" or alternately ASPemail.
Step 2: Copy the HTML below and paste it into a new document
in your editor.
is only a sample form! Your form may be much more complex.
this as a starting point and customize your form to your needs.
The parts in RED are really
the only parts that are necessary/reccomended for your form
to work with this script.
<title>Your Title Here</title>
<meta http-equiv="Content-Type" content="text/html;
<body bgcolor="#FFFFFF" text="#000000">
<form method="post" action="http://www.NetHereExample.com/cgi-bin/formmail.pl">
<input type="text" name="name">
<input type="text" name="email">
<input type="hidden" name="realname"
value="My FormMail Test">
<input type="hidden" name="redirect"
<input type="hidden" name="subject"
value="Your Subject here">
<input type="hidden" name="recipient"
<input type="submit" name="Submit"
<input type="reset" name="clear" value="Clear
Step 3: Edit the parts in RED to match your settings and
prefrences and save your new HTML page.
Step 4: Upload the page and test your form. Thats it!
If you have further questions, please give us a call at
or use our contact form.