ciao a tutti, ho un'applicazione PHP che manda delle email di notifica, ma mi vengono filtrate dal provider d'arrivo come spam!
Io invio la mail con questi headers:
codice:
# Email via PHP
function email($to, $subject, $msg)
{
@ini_set('SMTP','mail.hotmail.com');
$headers
= 'MIME-Version: 1.0' .NL
. 'Content-type: text/html; charset=utf-8' .NL
. 'From: MJGUEST' .NL
. 'To: '.$to .NL
. 'Reply-To: ' .NL
. 'Return-Pach: ' .NL
. 'X-Priority: 1' .NL
. 'X-MSMail-Priority: High' .NL
. 'X-Mailer: MJGUEST';
return @mail($to, $subject, $msg, $headers);
}
Ecco il risultato:
codice:
pts rule name description
---- ---------------------- --------------------------------------------------
0.5 X_PRIORITY_HIGH Sent with 'X-Priority' set to high
0.9 REPLY_TO_EMPTY Reply-To: is empty
0.5 X_MSMAIL_PRIORITY_HIGH Sent with 'X-Msmail-Priority' set to high
1.9 FROM_NO_LOWER 'From' has no lower-case characters
0.1 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
1.2 MISSING_MIMEOLE Message has X-MSMail-Priority, but no X-MimeOLE
1.7 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag
0.1 MISSING_OUTLOOK_NAME Message looks like Outlook, but isn't
The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam. If you wish to view
it, it may be safer to save it to a file and open it with an editor.
Devo modificare gli headers come dice il responso, mi date una mano?
ciao,
jack.