Contact your host explaining that the PHP session on your contact form page is not working as it should. RapidWeaver uses them for the confirmation messages as well as spam protection. Sessions are simply a way of carrying information between webpages. The liklihood is that your host does not have PHP sessions enabled correctly.
If when attempting to send, nothing happens, there are no errors or confirmation: You should contact your host to determine the best way to fix this issue. It may not be configured correctly to use the PHP mail() function either for security reasons or because they support another PHP mailing system. There is a problem with your host's PHP setup. If seeing error message "There has been a error when trying to send the email": (To make it easy for you to figure this out, at the bottom of this page we've included an email you can send to your host in order to determine their setup.) Ensure they are able to send an email from the server using PHP mail() and 'sendmail'.
If you are on a Windows server try checking 'Define email address in PHP mail script' within the Advanced Page Inspector settings.Ĭontact your host for advice. If so, check the Page Inspector's 'Send email using your email address' checkbox. Some servers require email to be sent from the owners email address for security reasons. If the contact form appears to be working but you are not receiving emails please check your hosting company's spam filtering policy. This can be found in the Prefix tab under the Header area of the Page Inspector. Make sure the XML declaration option is switched off. Ensure that there is no additional whitespace in the field and that the address uses only lowercase characters. Mac) does not support PHP and so the contact form will not work when published to the MobileMe service.Ĭheck that the email address entered in the Page Inspector is correct. Please remember that Apple's MobileMe service (previously known as. This script does not have any validation or error checking, so it is not recommended that you copy it directly to your website, however, it does show the basics of sending email from our webservers, and can be used as a framework for your own scripts.If you’re having issues getting the Contact Form to work, please try the following:Ĭheck that your host supports PHP. In order to send an email, we need certain information (variables), so lets set them first. In this example, we will name the script sendmail.php as this is the address our form is submitting the data to. Now we have a form that sends information to a script, we need to create a script to send the email. Once the user click the Submit button, it will collect the information contained within the fields, tag the information as "email, name and message", then send the information to sendmail.php. This form has three fields (email address, name and message) that users can fill in. Not the prettiest form, but it can be tidied up, and validation can be added at a later date. In its most basic form, it can look like this: This example will take the information from a feedback form, send it to you in an email message, then forward the customer to a "thank you for your comments" page.įirst of all we need to create a feedback form that will receive the data. If you don't specify an existing mailbox on your domain as the to or from email address, your script may produce a 554: Recipient address rejected: Relay access denied error. In its basic form, a simple sendmail script will look like this: This will set the name of the from email address. A fifth parameter, -f, should be added to the sendmail function.While access to the php.ini file is restricted on our shared environment, you can sent this variable using the ini_set() command, shown below. To stop misuse of your form by third parties the sendmail_from variable should be set to your Fasthosts hosted email address.This must be a mailbox on the same domain name on which the form to mail script is being hosted. Email must be from an existing email address hosted by Fasthosts.To prevent spam being sent through our webservers, there are certain conditions that must be met before our SMTP servers will send the email. FTP software, such as FileZilla, Cyberduck or cuteFTP.A text editor, such as Notepad++ or Notepad.How can I add a hosting package to my domain name? Knowledge of PHP, HTML and FTP is required.