- mail: documentation ( source)
<?php
$to = "tyrael@php.net";
$subject = "Subject_here";
$txt = "Message here";
// This works because I included a space between @ and domain
$headers = "From: Username@ domain.com";
mail($to,$subject,$txt,$headers);
?>