title: PHP mail() function, return true but doesn't send any mail
body: <p>i have next code:</p>
  
  <pre><code>if (!mail($_POST['mail'], $text['EMAIL_RECOVER_MSG_SUBJECT'], $text['EMAIL_RECOVER_MSG'], $from)) {
      $msg = $text['MAIL_ERROR'];
      $msgDisplay = 'inline';
    }else {
      $recover = false;
      echo "&lt;div class='alert alert-success'&gt; {$text['RECOVER_MAIL_SENT']}&lt;/div&gt;";
   }
  </code></pre>
  
  <p>and I try to send this message:</p>
  
  <pre><code>nati323@gmail.com
  Password Recover: From dmworld24.com
  You Forget Your Password To Recover it Please Go Into The Next Link:\r\n http://dmworld24.com/login.php?act=rec&amp;token=11674209834514531801839026455 \r\n If You Didnt Ask For Password Recovering Just Ignore This Message
  From: system@dmworld24.com
  </code></pre>
  
  <p>the code always show a success message, and the mail function return true, but i dont gey any mail in my mailbox, (and not in the spam) , i'm using xampp, and my php.ini is</p>
  
  <pre><code>sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
  </code></pre>
  
  <p>my sendmail.ini is:</p>
  
  <pre><code>smtp_server=smtp.gmail.com
  error_logfile=error.log
  debug_logfile=debug.log
  auth_username=nati323@gmail.com
  auth_password=*****
  force_sender=nati323@gmail.com
  </code></pre>
  
  <p>why its doesn't work? and where can i see the mail log file for check errors?</p>
  
  <p>some mark my question as duplicate, and gave a link to this: <a href="https://stackoverflow.com/questions/24644436/php-mail-form-doesnt-complete-sending-e-mail">PHP mail form doesn&#39;t complete sending e-mail</a>
  so i check all they say there,</p>
  
  <p>1) my error reporting set to -1, and error display set to On.</p>
  
  <p>2) as you can see i my comments i don't have any log file.</p>
  
  <p>3) mail function return true</p>
  
  <p>4) the mail doesn't found in the spam box</p>
  
  <p>5) i supply the headers like they say there</p>
  
  <p>6) i don't have headers syntax error</p>
  
  <p>7) don't send to multiple accounts</p>
  
  <p>8) i tried on host server that support mail, and doesn't work, and i try on my localhost i set the php &amp; sendmail .ini files like you told me, still doesn't work...</p>