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