Sending email from a webpage using PHP

Any PHP script which uses the mail function to send emails will work on our Linux servers. If you are having difficulties creating a contact form and FormMail does not suit your needs, you are welcome to use the below example code as a starting point for your email form.

Please note that this example is provided as is and we aren't able to provide you support in modifying your email form to include additional functionality.

If you require additional coding assistance, we recommended visiting php.net.

Example form

".$_POST['email'].".
"; }else{ $message = "Failed sending message to ".$_POST['email'].".
"; } }else{ if (isset($_POST['submit'])){ $message = "No email address specified!
"; } } if (!empty($message)){ $message .= "

"; } ?> Mail test
e-mail
subject
message