Other Languages:
Dansk
Deutsch
Ελληνικά
Español
Suomi
Filipino
Français
Indonesian
Italiano
Japanese
Korean
Malay
Bokmål
Nederlands
Polski
Português - Brasil
Português - Portugal
Русский
Svenska
Thai
Türkçe
Українська
Vietnamese
Chinese
Taiwan Chinese
Using Our PHP Form Mailers on Web & Classic Hosting
Print this Article
Last Updated:
July 21, 2015 2:15 PM
This article only applies to Web & Classic Hosting. For more information, see What type of hosting account do I have?
Customers using cPanel or Plesk can use Sending Form Mail with cPanel and Plesk Shared Hosting.
Two non-CGI form mailers are included in Linux shared hosting account default files: webformmailer.php and gdform.php. They reside in the root directory of your hosting account. Incorporating either of these scripts into your website creates a form to capture user information and email it to a specified address.
For more information about designating the destination email address, see Specifying an Email Address for the PHP Form-Mailer.
Follow these steps to use webformmailer.php.
To Use webformmailer.php
- Log in to your Account Manager.
- Click Hosting.
- Next to the hosting account you want to manage, click Manage.
- From the Tools section, click File Manager.
- Click the file name for the Web page you want to place your form mailer in.
- Enter the form mailer in the body of your HTML.
- This is a very generic form mailer you can use:
If you create your own form tag, assign /webformmailer.php
to the action attribute and set the form method to post
:
In addition to the form fields you create, there are hidden elements you can use.
form_format determines in what format the information is delivered. Its values are 'text', 'csv', 'html', 'xml', and 'default' (same as 'text').
form_delivery determines the frequency and packaging of delivery. All form submissions are sent via an attachment. You can specify the form_delivery variables as one of the following: 'digest', 'hourly_digest', and 'daily_digest'.
Once you are finished adding your Web form mailer click OK.
Follow these steps to use gdform.php.
To Use gdform.php
WARNING: The gdform.php
file cannot be recovered if it's deleted.
- Log in to your Account Manager.
- Click Hosting.
- Next to the hosting account you want to manage, click Manage.
- From the Tools section, click File Manager.
- Click the file name for the Web page you want to place your form mailer in.
- Enter the form mailer in the body of your HTML.
- This is a very generic form mailer you can use:
- If you create your own form tag, assign your Web form mailer with unique names to your form items.
NOTE: Keep in mind that our form-mailer script will sort the names of your form items alphabetically when it composes the email message. This is the order of precedence: uppercase letters, lowercase letters, numbers.
- For the form action line, enter
/gdform.php
. For example:
- Set the form method to "post."
- In addition to the fields you create in your form, there are three special fields that you can use: subject, redirect, and email.
Subject. Controls the subject line in the form email.
Redirect. Controls the page that your visitors will see after they submit the form.
Email. Controls the return address for the form email.
- Once you are finished adding your Web form mailer click OK.
For more information on customizing HTML Forms, go to W3 Schools HTML Forms and Input.
For information on reinstalling your default scripts, see How Do I Reinstall the Default Scripts Directory?