HTML interesse |
|
Met dit script komen de mailtjes aan in ongewenste post in hotmail. Waarschijnlijk is er iets fout met de header gegevens? Kan iemand mij hiermee helpen?
Code:
$headers = "From: \"blabla\" <".$mail_webmaster.">\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "Return-Path: Mail-Error <".$mail_webmaster.">\r\n";
// Bericht
$message = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">";
$message .= "<HTML><HEAD>";
$message .= "<META http-equiv=\"3\" DContent-Type content=3D\"text/html; = charset=3Dwindows-1252\">";
$message .= "</HEAD><BODY>";
$message .= "<table border=\"0\" cellspacing=\"5\" cellpadding=\"1\" width=\"100%\" align=\"center\" nowrap><tr><td><div>";
$message .= "<style type=\"text/css\">.style4 {font-size:12px;}</style>";
$message .= "<table width=\"600\" bgcolor=\"#FFFFFF\" border=\"1\" align=\"center\" cellpadding=\"1\" cellspacing=\"1\" bordercolor=\"#f0f0f0\"> <tr><td><span class=\"style4\"><table width=\"850\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\" bordercolor=\"#f0f0f0\" bgcolor=\"#FFFFFF\">";
$message .= "<tr><td align=center><img src=\"http://www.site/logo.gif\" border=\"0\"></td><td><font size=\"6\" face=\"Verdana\">";
$message .= "</td></tr>";
$message .= "</table></span class=\"style4\"></td></tr><tr><td bgcolor=\"#313131\" align=\"center\"><span><font color=\"#ffffff\">Reactie op: $lijst->titel</font></span></td></tr> <tr><td><font color=\"000000\"><br>";
$message .= "<font size=\"2\" face=\"verdana\">".$list->naam.", heeft je een emailtje gestuurd naar aanleiding van de volgende advertentie: ".$lijst->titel."<br><br>".$_POST['bericht']."<br><br>Dit bericht is gestuurd vanaf site.net.<br>Misbruik kunt u melden aan: ***@scooterplaza.net.<br><br>".$reclame."<br><br><font size=\"2\" face=\"verdana\" color=\"000000\">Met vriendelijke groet,<br>";
$message .= "$webmaster (<a href=\"mailto:$mail_webmaster\"><font size=\"2\" face=\"verdana\" color=\"000000\">$mail_webmaster</a>)</font><br><a href=\"$site_url\"><font size=\"2\" face=\"verdana\" color=\"000000\">$site_url</font></a></font></td></tr>";
$message .= "<tr><td bgcolor=\"#f0f0f0\" height=\"10\"><center></span class=\"style4\">Copyright © 2006 - All Rights Reserved</span><br /><strong>site.net</strong></center></td></tr><table>";
$message .= "<font color=\"#000000\"></div><br></td></tr>";
$message .= "</body></html>";
if (!$_POST[naam] || !$_POST[email] || !$_POST[bericht])
{
echo "Niet alle velden zijn ingevuld!";
} else {
mail("$list->email", "Reactie op: $lijst->titel", "$message", "$headers");
$headers = "From: \"blabla\" <".$mail_webmaster.">\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "Return-Path: Mail-Error <".$mail_webmaster.">\r\n"; // Bericht $message = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"; $message .= "<HTML><HEAD>"; $message .= "<META http-equiv=\"3\" DContent-Type content=3D\"text/html; = charset=3Dwindows-1252\">"; $message .= "</HEAD><BODY>"; $message .= "<table border=\"0\" cellspacing=\"5\" cellpadding=\"1\" width=\"100%\" align=\"center\" nowrap><tr><td><div>"; $message .= "<style type=\"text/css\">.style4 {font-size:12px;}</style>"; $message .= "<table width=\"600\" bgcolor=\"#FFFFFF\" border=\"1\" align=\"center\" cellpadding=\"1\" cellspacing=\"1\" bordercolor=\"#f0f0f0\"> <tr><td><span class=\"style4\"><table width=\"850\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\" bordercolor=\"#f0f0f0\" bgcolor=\"#FFFFFF\">"; $message .= "<tr><td align=center><img src=\"http://www.site/logo.gif\" border=\"0\"></td><td><font size=\"6\" face=\"Verdana\">"; $message .= "</td></tr>"; $message .= "</table></span class=\"style4\"></td></tr><tr><td bgcolor=\"#313131\" align=\"center\"><span><font color=\"#ffffff\">Reactie op: $lijst->titel</font></span></td></tr> <tr><td><font color=\"000000\"><br>"; $message .= "<font size=\"2\" face=\"verdana\">".$list->naam.", heeft je een emailtje gestuurd naar aanleiding van de volgende advertentie: ".$lijst->titel."<br><br>".$_POST['bericht']."<br><br>Dit bericht is gestuurd vanaf site.net.<br>Misbruik kunt u melden aan: ***@scooterplaza.net.<br><br>".$reclame."<br><br><font size=\"2\" face=\"verdana\" color=\"000000\">Met vriendelijke groet,<br>"; $message .= "$webmaster (<a href=\"mailto:$mail_webmaster\"><font size=\"2\" face=\"verdana\" color=\"000000\">$mail_webmaster</a>)</font><br><a href=\"$site_url\"><font size=\"2\" face=\"verdana\" color=\"000000\">$site_url</font></a></font></td></tr>"; $message .= "<tr><td bgcolor=\"#f0f0f0\" height=\"10\"><center></span class=\"style4\">Copyright © 2006 - All Rights Reserved</span><br /><strong>site.net</strong></center></td></tr><table>"; $message .= "<font color=\"#000000\"></div><br></td></tr>"; $message .= "</body></html>"; if (!$_POST[naam] || !$_POST[email] || !$_POST[bericht]) { echo "Niet alle velden zijn ingevuld!"; } else { mail("$list->email", "Reactie op: $lijst->titel", "$message", "$headers");
|