Salve ragazzi ho creato uno script in php per inviare email.
Funziona tutto a meraviglia, ma ho un problema, come mai quando ricevo l'email e vado ad aprirla mi esce scritto: "This message may be dangerous" (es. hotmail).
Cioè e come se venisse vista come spam.
Qui il codice:
Codice PHP:
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: Nome <miaemail@domain.com>' . "\r\n";
// multiple recipients
$to = 'miaemail@domain.com' . ', '; // note the comma
// subject
$subject = 'Email title';
// message
$message = '
<html>
<head>
<title>Qui il titolo</title>
<link href=\"css/styles.css\" rel=\"stylesheet\" type=\"text/css\" />
</head>
<body>
<table cellspacing="0" cellpadding="10" border="0">
<tr>
<td width="80">Ciao a tutti</td>
<td width="280">
Qui il testo dell\'email</p></td>
</tr>
</table>
</body>';
// sendmail
mail($to, $subject, $message, $headers);
Come potrei risolvere il problema?