How To Set Up An E-Mail Form On Your TMLP Online Web Page
1.> Create your
HTML page as you normally would.
2.> In the section of your Web page with the mail form, open your form with
the following line:
<form action="/scripts/mailto.exe" method="post">
3.> The following three input fields MUST be present in the
body of your form:
3a.)
<input type="hidden" name="sendto" value="Your
Email Address">
Replace "Your Email Address" in the above line with your TMLP
Online Email address, so, for example, if your email address is bobjones@tmlp.com,
this line would appear as: <input type="hidden" name="sendto"
value="bobjones@tmlp.com">
3b.)
<input type="hidden" name="subject" value="Your
Subject">
Replace "Your Subject" in the above line with whatever you
want to appear in the Subject: line of the email you will receive. So, for example,
if this is a form to order ball bearings, you might want to make this line appear
as: <input type="hidden" name="subject" value="Ball
Bearing Order Form">
3c.)
<input type="hidden" name="resulturl" value="Web
Page To Redirect To">
Replace "Web Page To Redirect To" in the above live with
the Web page you want the user to be sent to after they submit the form. This
can be literally anything, including the web page it was sent from, or even
a page on another site. Let’s say Bob built a separate page that thanks the
user for his or her order, called "thanks.htm" on the server personal.tmlp.com
In this case, this line would appear as: <input type="hidden"
name="resulturl" value="http://personal.tmlp.com/thanks.htm">
3d.)
<input type="hidden" name="server" value="mail.tmlp.com">
4.> The mailform will automatically send the mail to you "from you"
(meaning that if the form was created with the variables listed above, anything
sent out would go to "bobjones@tmlp.com" and the From: line of the
message Bob would receive would also read "bobjones@tmlp.com," so
it’s probably a good idea to include an input field for your form user’s e-mail
address if you want them to reply via e-mail.
So, let’s take a look at Bob’s HTML page’s source code, with the exception that
Bob’s decided he wants to send his users to view the site ‘www.ballbearings.com’
after they submit an order:
<html>
<head>
<title>Ball Bearing Order Form</title>
</head>
<body bgcolor=#FFFFFF>
<center>
<font size=6>Ball Bearing Order Form</font>
<form action="/scripts/mailto.exe" method="post">
<input type="hidden" name="sendto" value="bobjones@tmlp.com">
<input type="hidden" name="subject" value="Ball
Bearing Order Form">
<input type="hidden" name="resulturl" value="http://www.ballbearings.com">
<input type="hidden" name="server" value="mail.tmlp.com">
Your Name: <input type="text" name="Customer Name" size=30><br>
<table>
<tr>
<td>Your Mailing Address:</td><td><input type="text"
name="Address Line 1" size=30></td>
</tr><tr>
<td></td><td><input type="text" name="Address
Line 2" size=30></td>
</tr>
</table>
<input type="text" name="Number Of Ball Bearings" size=10><br>
<input type="submit" value="Send Order">
<input type="reset" value="Clear Form">
</form>
</center>
</body>
</html>
When the user enters information and presses the button marked "Send
Order," this form will automatically send an e-mail to bobjones@tmlp.com
with a Subject: header of Ball Bearing Order Form and whatever information
the user input. The user will automatically be redirected to http://www.ballbearings.com
after the mail has been sent.