Re: Why wont my script mail in explorer, but ok in Firefox?



Nosferatum wrote:
My mail script stops working in IE 8. But works fine in latest
firefox.

How is this possible?

Here is the script:

<?php
session_start();

//$_SESSION['MrMs']
//$_SESSION['first_name']
//$_SESSION['last_name']
//$_SESSION['email_submitted']




$sendto = $_SESSION['email_submitted'];
$mrms = $_SESSION['MrMs'];
$first_name = $_SESSION['first_name'];
$last_name = $_SESSION['last_name'];


$bryt = "<p>";
$sterk= "<b>";
$sterkslutt= "</b>";
$nisse = "this@xxxxxxx";

$headers = "From: HERE <this@xxxxxxx>\r\n";
$headers .= "Reply-To: this@xxxxxxx\r\n";
$headers .= "Return-Path: this@xxxxxxx\r\n";
$headers .= 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

$to = "$sendto";
$subject = "Email confirmation meeting";

$message = "Dear $mrms $first_name $last_name.\n $bryt This email
confirms your registration on $sterk the event.$sterkslutt \n\n $bryt
Please note that this is an automatic generated email.\n\n $bryt If
you have any questions regarding the meeting, please consult $sterk
this name $sterkslutt, at: $nisse \n\n";
$body = "<html>\n";
$body .= "<body style=\"font-family:Verdana, Verdana, Geneva, sans-
serif; font-size:12px; color:#000000;\" \"font-weight:bold;\">\n";
$body = $message;
$body .= "</body>\n";
$body .= "</html>\n";

$ok = @mail($to,$subject,$message,$headers);


if ($ok) {
session_write_close();
header('Location: registrationSent.php') ;
} else {
echo "<p>Mail could not be sent. Damn!</p>";
}

?>


when it says IE says "Done" on the status bar - what do you see when you "view source"? My guess is that something is missing from your html code (if it is missing the end-html tag at the end, I have seen IE not display the page. </html>
.