vedi il secondo esempio della documentazione ufficiale:
mail function
Codice PHP:
<?php 
$to 
'nobody@example.com'
$subject 'the subject'
$message 'hello'
$headers 'From: [email]webmaster@example.com[/email]' "\r\n" 'Reply-To: [email]webmaster@example.com[/email]' "\r\n" 'X-Mailer: HP/'.phpversion();  
mail($to$subject$message$headers); 
?>