Problema spam nell'invio di una mail
-
Salve a tutti,
devo inviare una mail dal mio sito. Finché metto content-type: text/plain è tutto ok.
Quando invece lo sostituisco con text/html la mail mi va a finire nello spam.
Questo è il codice della mail:$MailTo_pass = $_POST[mail]; $MailSubject_pass = "REGISTRAZIONE SDB.ORG"; $MailHeader_pass = "From: email\nX-Mailer: PHP;\nReplyTo: email\nReturn-Path:email\nContent-Type: text/html; charset=utf-8"; $MailBody_pass = "Il Webmaster ha registrato i suoi dati sul sito <br /> Riepilogo Dati per l'accesso all'Area Riservata:<br /> Username: ".$_POST['login']." <br />Password: ".$_POST['pass']."<br /> <a href='link sito>Clicca qui per accedere all'Area Riservata</a><br /><br /> Distinti saluti.<br /><br />Il Webmaster"; mail($MailTo_pass, $MailSubject_pass, $MailBody_pass, $MailHeader_pass);E questi sono gli errori segnalati:
SUBJ_ALL_CAPS (Subject is all capitals)
NORMAL_HTTP_TO_IP (URI: Uses a dotted-decimal IP address in URL)
HTML_MESSAGE (BODY: HTML included in message)
BAYES_50 (BODY: Bayesian spam probability is 40 to 60%)
MIME_HTML_ONLY (BODY: Message only has text/html MIME parts)
MIME_HEADER_CTYPE_ONLY ('Content-Type' found without required MIME headers)
HTML_MIME_NO_HTML_TAG (HTML-only message, but there is no HTML tag)
RDNS_NONE (Delivered to trusted network by a host with no rDNS)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.Qualcuno può aiutarmi?
Grazie mille!
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi