hi all,
i configured an email program using mime that works fine whenever i send it to yahoo from the website that posts the mail whenever any body posts a message. But it doesn't reach my isp mailbox. i'm in a fix. I have used exactlly this code that works with yahoo! please help......
//Building Message for Mail
//$MsgText .= "--$bdry\r\n";
//$MsgText .= "Content-Type: text/html;\r\n charset=\"iso-8859-1\"\r\n";
//$MsgText .= "Content-Transfer-Encoding: quoted-printable\r\n\r\n";
$headers ="MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$headers .="Content-Transfer-Encoding: 8bit\r\n\r\n";
$headers .="Date: date()\r\n";
$headers .= "From: Anirban <anirban@abc.com>\r\n";
$MsgText .= "\n";
// your html goes here -- It didn't appear properly without
// the weird markup that outlook added after sending
//$MsgText .= "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\r\n";
$mText .="Hi David I am " . $name . ", I live in " . $address . " " . $city . " ";
$mText .=$state . " " . $country . " " . "My phone no and email are " . $phone . " and " . $email . " respectively ";
$mText .="But I'd like to be contacted over " . $contact . " ";
$mText .="I came across you from the source " . $webfound . " ";
$mText .=" and my interest is " . $interest . " ";
$mText .="The details regarding my inquery is " . $inquery . " \r\n";
$MsgText .=$mText;
// this ends the message part
//$MsgText .= "--$bdry--\r\n";
//$MsgText .= "\n";
//echo $MsgText;
//inserting data
if ($sAction=="insert")
{
$db->query($sSQL);
mail("thinklabs@yahoo.com","Message from xxxxxxxx",$MsgText,$headers);
}