Using PHP scripting for a contact form

This article applies to 123-reg Shared Hosting accounts.

Although 123-reg does not directly provide scripting support you can use our sample php script in order to send email via a contact form.

Please click here to download the script, you will need to change the following values as highlighted below and then save the file as a .php extension.

Please change the text within the open " and " brackets for each of the four fields shown below.

$EmailFrom = "";

$EmailTo = "";


If you have forgotten your email login details click here to find out how to retrieve them.

Please Note: The PHP script above is a basic level script which does not include advanced features such as validation of information entered into the contact form by the end user.

For further information and support with PHP scripting please see


Answer options

Your feedback was successfully added.

Answer tracking


Watch the content of this article for changes.