Hello all,
I have written a code to send mail on yahoo or gmail.Mail is sending on gmail but i m not seeing any message in yahoo mail. And in gmail i m seeing all html content with message. here is my code...
$headers = "From: \"".$from_name."\" <".$from_email.">\n";
$headers .= "To: \"".$to_name."\" <".$to_email.">\n";
$headers .= "Return-Path: <".$from_email.">\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/HTML; charset=ISO-8859-1\n";
// message
$message = '
<html>
<head>
<title>Registration</title>
</head>
<body>
<table><tr>
<td> <a href="#'> Click Here To Activate Your account</a>
Thanks To visit site.com
</td>
</tr>
</table>
</body>
</html>';
if(mail('', $subject, $message, $headers))
echo "successfully register !! please check your mail and clik on confirmation link";