Page tree
Skip to end of metadata
Go to start of metadata

If you use a form or script on your website that sends e-mail, but notice that it is not working, then here are some generic steps that might help you figure out what has gone wrong.

If your are not receiving messages submitted by the form:

  1. Find the page that is submitting the form.
  2. Look at the code and search for the part that says action=”
  3. Be interested in what follows the action, if it is another .php file or some other script you can identify what is being used to actually send the mail.
  4. Once you know what file is actually sending the mail you can check that file for the e-mail address. If it is a file hosted elsewhere then your troubleshooting would shift to that remote location.

Some general ideas are [though not a comprehensive list]:

You need to verify that your domain is pointed correctly to our server for your hosting account.
If The e-mail address you’re sending to is not one handled by WestHost, then it may be getting blocked by the remote location's mail servers.
If your MX Record is not pointed to WestHost you may need to select "Remote" under the MX Entry settings to make sure the server is checking the MX correctly to send out.

A simple php mail script looks like the following,

//syntax is mail(‘recipient’,'subject’,'message’);
mail(‘’, ‘Test Message’,'This is a test and only a test’);

this is a simple php mail script and there are much more advanced things you can do with the mail function. The above function can also be used to test that php mail() is working. For more advanced usage on the mail function please see,