mail function not working for yahoo mail id
        Posted  
        
            by Akash
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Akash
        
        
        
        Published on 2010-05-29T19:10:16Z
        Indexed on 
            2010/05/29
            19:12 UTC
        
        
        Read the original article
        Hit count: 265
        
php
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";
        © Stack Overflow or respective owner