Developer Support »

Installing the script

FormToEmail (free version)

Once you have downloaded the script, you need to install it. For information on downloading the script, see the "Downloading the script" page on the support section which you can get from the "Support" link above.

You should have the script (FormToEmail.php) saved on your computer. The installation instructions are contained in the script itself. You can open the script in a text editor such as Notepad and follow the installation instructions.

If you are using the contact form that comes with the script, you need to put the HTML code for the form on your webpage. Then you need to edit the script, save it and upload it to your webspace along with your webpage containing the form. The very minimum that you need to do to the script is add your email address to it. Thereafter you can save it, upload it and it will work.

If you are using an existing form, all you need to do is change the action of the form and edit the PHP script (FormToEmail.php). The minimum you need to do to the script is add your email address to it. See the "Processing your own forms" support page for more information on using an existing form.

If you are using the contact form that comes with the script, open the script in a text editor and copy the code for the form. You will see this near the top of the instructions in the script. Paste the code into the webpage that you want the contact form on. Just paste it as it is, that's all you need to do. You might want to make some changes to the appearance of the form to suit your site. A condition of using the free script is that you keep the link to FormToEmail.com on it (not required for the Pro version, it has no branding on it).

Next you must add your email address to the script. This is the email address that you would like the contents of the form sent to. To add your email address to the script, locate this line in the script, near the top:

$my_email = "delete these words and put the email address only in here between the quotes";

As it says, delete the words and put the email address in there. like so:

$my_email = "[email protected]";

If you want the contents of the form to be sent to more than one email address, enter the addresses separated by commas, like so:

$my_email = "[email protected],[email protected],[email protected]";

You can use any email address, it doesn't have to be the same domain as your website.

That's the minimum that you need to do. Thereafter, save the script (FormToEmail.php - case sensitive) and upload it to your webspace. Save the webpage containing the form and upload that also. Put both files in the same directory (folder). You do not need to change permissions for the script file.

FormToEmail-Pro (Pro version)

Once you have downloaded the script, you need to install it. For information on downloading the script, see the "Downloading the script" page on the support section which you can get from the "Support" link above.

The installation instructions for this version are much the same as the free version. The instructions are contained in the script (formtoemailpro.php) itself. The minimum you need to do is add your email address to the script and add the form code to your webpage (if using the supplied form code). This script has a number of configuration options. Before each option there is an explanation of the option and an example setting to let you see how it should be entered. In most cases you only need to enter a "0" or "1" to toggle an option.

Open the script in a text editor to edit it, save it (formtoemailpro.php - case sensitive) and upload it to your webspace together with the page containing the form. Place them in the same directory (folder).