The following is a working sample of how to send mail with PHP on our hosting accounts. Please note that we do not provide support for this sample. It is only provided as a guide to help you get started.
This is what the PHP code looks like:
<?php
$to = 'he@hisdomain.com';
$subject = 'this is the subject of the mail';
$message = 'this is the body of the mail';
$headers = 'From: me@mydomain.com' . "\r\n" .
'Reply-To: me@mydomain.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>