Click to See Complete Forum and Search --> : Mail Problem


lakshmivijay
02-27-2008, 02:19 AM
Hi

our server was upgraded to 5.2.5 .previously its 4.2

mail are not coming after server upgration.please let me know what is the problem .its urgent to me.

This is the code i'm using

$to = "xyz@gmail.com";
$from = $_POST['txtemail'];
$subject = "Newsletter Subscription Details";
$body = "Subscription For Newsletter"."<br><br>";
$body .= "Emailid : $from";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $from\r\n";
$ok=mail($to,$subject,$body,$headers);
if($ok)
{
echo " You have been successfully registered.";
}
else
{
echo " Please Try Again.";
}

SyCo
02-27-2008, 10:36 AM
look at the out put of phpinfo() and search for sendmail.

Check it's path is still correct and possibly re-install sendmail.