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:
$to = 'email@example.com';
$subject = 'this is the subject of the mail';
$message = 'this is the body of the mail';
$headers = 'From: firstname.lastname@example.org' . "\r\n" .
'Reply-To: email@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);