|

Sending mail with HTML forms & FormMail.pl
Requirements
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.
Related Topics
Unofficial Guide
to FormMail
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 webhosting@nethere.com with your
request.
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.
*Note this
is only a sample form! Your form may be much more complex.
Simply use
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.
<html>
<head>
<title>Your Title Here</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form method="post" action="http://www.NetHereExample.com/cgi-bin/formmail.pl">
name<br>
<input type="text" name="name">
<br>
email<br>
<input type="text" name="email">
<br>
<input type="hidden" name="realname"
value="My FormMail Test">
<input type="hidden" name="redirect"
value="http://www.yourRedirectPage.com">
<input type="hidden" name="subject"
value="Your Subject here">
<input type="hidden" name="recipient"
value="sfisher@nethere.com">
<input type="submit" name="Submit"
value="Submit">
<input type="reset" name="clear" value="Clear
it">
</form>
</body>
</html>
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
1-888-638-4373
or use our contact form.
|