Sono riuscito a implementare
Come faccio a inserire come scender "Quiz Messina"

$headers = 'From: Quiz@Messina' . "\r\n" .

Se inserisco cosi mi esce Quiz@Messina@altervista


Quote Originariamente inviata da domy18 Visualizza il messaggio
<?php
$to
= '$_GET['destinatario']';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

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