0 items
24/7 Support & Sales   1300 210 210
Online Support Web Hosting

Using PHP FormMail

PHP FormMail 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. More information on this script can be found in the Readme file in the download.

Terms of download. By downloading this code sample you agree to indemnify all parties involved with the development, hosting and provision against any and all disputes between yourself and any third party. You agree to indemnify, defend and hold harmless aforementioned parties against any loss or damage coming as a result of the sample code's provision.

Create a PHP mail form

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

Step 1. Download the script Jack's FormMail.php, save it to a temporary directory on your computer, then unzip the files.
 
Step 2. 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 (",").
 
Step 3. Edit the HTML code of your form page (eg, contact.html) and define the FORM ACTION to execute the formmail.php script and make sure the FORM METHOD is POST.
 
Step 4. Upload the formmail.php script and form mail HTML file into the directory in which you are planning to use it. (eg, /public_html) within your hosting space.
 
Step 5. Test the php form mail, please go to http://www.yourdomain.com/contact.html, submit the form and check your email for results.
 

For more information on PHP FormMail please refer to Jack's FormMail.

Was this helpful? Yes No 85% of people found this helpful.