Doteasy Tutorial - Scripting - Form Processors
Jack's FormMail.php: version 5.0
"Jack's FormMail.php" is a generic WWW form to e-mail gateway, which will parse the results of any form and send them to the specified user. 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. This also makes FormMail the perfect system-wide solution for allowing users form-based user feedback capabilities without the risks of allowing freedom of CGI access.


Installation Procedure 
Quick Tips 



Create your form page in HTML. There is no limitation to your form design.


The script can be downloaded from here.


The file that you will download is saved in .zip format; this is a compressed bundle containing the files in the distribution. Unzip this archive in a temporary directory on your computer using decompression software.


Open the formmail.php file in a plain text editor such as Notepad and change the value of the $recipient variable. Change the recipient address to the email address that the FormMail results will be sent to.

For Multiple Recipients, seperate the email addresses with commas (",").

Note: If the recipient email address is an email address under the website domain name, click here for more information about the special email format.


Upload the formmail.php script and form mail HTML file into the directory in which you are planning to use it, (eg, /var/www/html/) of your account.


Congratulations. You have successfully set up your FormMail script.

To test the php form mail, please go to http://www.mywebsite.com/contact.cfm


If you wish to redirect the user to a different URL, rather than having them see the default response to the fill-out form, you can use this hidden variable to send them to a pre-made HTML page or as another form type to let the user decide. Syntax:

To choose the URL they will end up at:
<input type=hidden name="redirect" value="http://www.mywebsite.com/redirect.cfm">

To allow the user to specify a URL they wish to travel to once the form is filled out:
<input type=text name="redirect" value="http://">


If you require additional assistance, please feel free to contact our customer service team: https://www.doteasy.com/ContactUs/SMS/

Top