Come mia questa mail non arriva?
Codice PHP:
$to2 = 'maildiprova@gmail.com';
$subject = 'INVIO MAIL';
$message = "
<html>
<head>
<title>".$youare." (".$yourmail.") ha lasciato il seguente messaggio:</title>
<link href='http://www.xxx.com/stylesheet.css' rel='stylesheet' type='text/css' />
</head>
<body>
<table class='mail_table' width='500' cellpadding='2' cellspacing='2'>
<tr>
<td>".fun_pulisco_a_capo($testo)."</td>
</tr>
</table>
</body>
</html>
";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "Content-Transfer-Encoding: 7bit\r\n";
mail($to2, $subject, $message, $headers);
La mail mi arriva come spam, con mittente sconosciuto e in più l'html non viene interpretato. Dove sbaglio?
Grazie.