| |
MailForm is a simple script that will take any variables that have been
delivered to the script via POST and mail them to the given recipient.
All that you need to do is copy the source code into a file. For our
example, we will call the file "mail.php"
Once you have created mail.php and copied the source code into it, edit
the mail.php file. Do the following:
- The recipient's e-mail adddress should be specified for the
$MailToAddress variable on line 2.
- The message subject should be specified for the $MailToSubject variable
on line 3.
- If the message should always appear to come from the same address, specify
that address for the $MailFromAddress on line 5. Otherwise, use the name
"MailFromAddress" for the recipeint's address input box on the submitting form.
For example:
Your e-mail address:<br>
<input type="text" name="MailFromAddress">
- If you wish to have a header before or footer after the POSTed data, place
the desired information in the $Header or $Footer variables on lines 7 and 8.
Create the form that contains the information that needs to be mailed.
All standard <FORM... > elements should work. The <FORM... > tag should
read something like:
<FORM ACTION="mail.php" METHOD="POST">
This script was created by Christopher Ostmo of AppIdeas.com. 1998.
If you have bugs to report, questions, feature requests, or jobs that we
can assist you in completing, contact us on the web at:
http://www.appideas.com
We do not provide free technical support for Open Source projects, but a
mailing list is available at:
http://open.appideas.com/
Feel free to use and modify this scripts, but please keep this notice
attached.
The latest version of this script and other PHP/MySQL utilities can be
found at:
http://open.appideas.com/
Copyright 1998-2001, AppIdeas.com
|




 |