<?php

$to = "test@nebon.net";

$subject = "PHP simple sendmail test from: ". $_SERVER['SERVER_NAME'];
$message = "PHP simple sendmail test.";

$from = $_SERVER['SERVER_NAME']."@nebon.net";
$headers = "From: $from";

mail($to,$subject,$message,$headers);

echo "PHP Simple Sendmail Mail Sent.";
?>