Lid |
|
Hallo,
Kan iemand mij helpen aub? Ik heb deze mailingscript wat bewerkt en het werkt goed in bepaalde browser maar in explorer vraagt hij telkens een beveiliging en in outlook toont hij enkel de html. Dat ligt waarschijnelijk aan de auth van mircosoft? Zie de code hieronder. Thnx
<?php
include('../connect.php');
$bericht = Stripslashes($_POST['content']);
$onderwerp = Stripslashes($_POST['onderwerp']);
$tekst = "
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8'>
<br><br>
<img src='http://www.PICTURE.be/'>
$bericht
<br><br><br>
Copyright © 2010 - Newsletter
<head>
</html>";
$query = "SELECT DISTINCT email FROM `mailing`";
$result = mysql_query($query);
while($row = mysql_fetch_array($result))
{
$headers .= "From: $van_naam<$van_email>\r\n";
$headers .= "MIME-Version: 1.0'\r\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: PHP/".phpversion();
mail($row['email'], $onderwerp, $tekst, $headers);
};
?>
<?php include('../connect.php'); $tekst = " <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'> <html> <head> <meta http-equiv='Content-Type' content='text/html;charset=utf-8'> <br><br> <img src='http://www.PICTURE.be/'> $bericht <br><br><br> Copyright © 2010 - Newsletter <head> </html>"; $query = "SELECT DISTINCT email FROM `mailing`"; { $headers .= "From: $van_naam<$van_email>\r\n"; $headers .= "MIME-Version: 1.0'\r\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\r\n"; $headers .= "X-Priority: 3\r\n"; $headers .= "X-MSMail-Priority: High\r\n"; mail($row['email'], $onderwerp, $tekst, $headers); }; ?>
|