title: sending email to gmail account locally with xampp, no error but the email does not arrive
body: <p>as in the subject ..! </p>
  
  <p>i configured my file as follows </p>
  
  <p>in php.ini</p>
  
  <pre><code>  SMTP =smtp.gmail.com
    smtp_port = 587
    sendmail_from = my adress@gmail.com
    sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
  </code></pre>
  
  <p>and in the sendmail.ini</p>
  
  <pre><code>    smtp_server=smtp.gmail.com
      smtp_port=587
      smtp_ssl=tls
      auth_username=(my adress @gmail.com)
      auth_password=( here my gamil account password )
  </code></pre>
  
  <p>to be clear you can see my php code here! </p>
  
  <pre><code>      $headers = "MIME-Version: 1.0" . "\r\n";
        $headers .= "Content-type: text/html; charset=iso-8859-1"."\r\n";
        $headers .="From: my adress @gmail.com"."\r\n";
  
         $subject = "Your New Password";
         $message = "Your new password is as follows:
          ----------------------------
          Password: $emailpassword
           ----------------------------
          Please make note this information has been encrypted into our database 
  
          This email was automatically generated."; 
  
  
  
        if(!mail($forgotpassword, $subject, $message, $headers)){
           die ("Sending Email Failed, Please Contact Site Admin! ($site_email)");
        }else{
             print'New Password Sent!.';
       } 
  </code></pre>
  
  <p>what i get when i send is  New Password Sent!.</p>
  
  <p>with no error 
  like if really it has been sent 
  but when i check the email there's no message !!</p>
  
  <p>NOTE: i'm running on windows-7</p>
  
  <p>Thank you. </p>