sending mail with PHP
Posted: Thu Dec 18, 2008 12:44 am
i was coded for send a confirmation mail(html mail) to the registered user. its working, but the problem is the yahoo and hotmail is recognize it as a spam mail or junk
. this is my coding, anyone plz help me.
Code: Select all
$to=$_POST['mail'];
$subject="Welcome";
$msg="<html>blablabla</html>";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type:text/html \r\n";
$headers .= 'From: lasith_nt@hotmail.com<lasith_nt@hotmail.com>\r\n';
mail($to,$subject,$msg,$headers);