Ciao a tutti, utilizzo una newsletter da tempo e non credevo ci fossero dei problemi, invece ho alcuni iscritti che mi dicono di ricevere in Outlook Express la newsletter con il corpo bianco e il contenuto in un allegato .htm
Di seguito c'è il codice usato per l'invio.
Qualcuno riesce a trovare un errore ? Nel mio Outlook Express io lo vedo benissimo, quindi non tutti la ricevono come allegato.
Grazie a tutti.
codice:$getemail = mysql_query("SELECT email, header, nome FROM iscritti") or die(mysql_error()); while($data=mysql_fetch_array($getemail)) { $type=$data["header"]; $email=$data["email"]; $nome=$data["nome"]; $datanews=date('m/d/Y'); if($type == "H") { $header = "From: $return_email\nReply-To: $return_email\nContent-Type: text/html; charset=iso-8859-1"; mail("$email", "$title", " <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; \" /> <title>mia newsletter</title> </head> <body style=\"margin: 0; padding: 0;\"> $body \n\n <hr size=1 color=#bbbbbb width=100%> <font size=1> se non vuoi ricevere piu <a href=\"http://www.miosito.com/newsletter/add_unsub.php?f=unsub_email&email=$email\">Disiscriviti</a></font> </body> </html> ", "$header");

Rispondi quotando