Hi all,
THis code i have written.
Mail is not working means Gmail is working Perfect but Yahoo,rediff is not working.
But still it shows Mail has been send but In yahoo i didnt receive any email
PLz any one....
Code:$to=$_POST['TREF_Contact_Email']; $subject=$_POST['TR_Subject']; $body='<table width="350" border="0" align="center"> <tr> <td><div align="left">'.$_POST['TR_Content'].'</div></td> </tr> <tr> <td align="center">Dont Reply to This Id.</td> </tr> <tr> <td align="center"><a href="http://C-eased.org">admin@c-eased.org </a></td> </tr> </table>'; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; Charset: ISO-8859-1\r\n"; $headers .= 'To:'.$to. "\r\n"; $headers .= "From:c-eased.org<nobody@server.websys.co.in>\r\n"; /***********************if(eregi("gmail",$to)) { $headers = "MIME-Version: 1.0\r"; $headers .= "Content-type: text/html; Charset: ISO-8859-1\r"; $headers .= 'To:'.$to. "\r"; $headers .= "From: admin@c-eased.org <nobody@server.websys.co.in>\r"; } else { $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; Charset: ISO-8859-1\r\n"; $headers .= 'To:'.$to. "\r\n"; $headers .= "From: admin@C-eased.org<nobody@server.websys.co.in>\r\n"; } **********************/ if(mail($to,$subject,$body,$headers)) { $smarty->assign("msg","Mail has been send."); } else { $smarty->assign("msg","Mail has not been send."); }





Bookmarks