Cosa significa "non va"?
Prova ad aggiungere l'header:
Codice PHP:
$header = 'MIME-Version: 1.0' . "\r\n";
$header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$header .= 'From: Mittente <email@email.it>' . "\r\n";
$destinatario = "XXX@hotmail.it";
$oggetto = "Subscription";
$messaggio = "The email sent by the user is: $mail";
mail($destinatario, $oggetto, $messaggio, $header);