title: PHP Sendmail Failed in windows xampp
body: <p>I'm trying to sendmail in windows via my gmail account, i've configured my php.ini :</p>
  <pre><code>SMTP=smtp.gmail.com
  smtp_port=587
  sendmail_from=jaisanas2@gmail.com
  sendmail_path=&quot;\&quot;C:\xampp\sendmail\sendmail.exe\&quot; -t&quot;
  
  and sendmail.ini :
  smtp_server=smtp.gmail.com
  smtp_port=587
  smtp_ssl=auto
  error_logfile=error.log
  auth_username=confidential@gmail.com
  auth_password=my-password-confident
  force_sender=confidential@gmail.com
  </code></pre>
  <p>here is my code :</p>
  <pre><code>&lt;?php
  // The message
  $message = &quot;Line 1\r\nLine 2\r\nLine 3&quot;;
  
  // In case any of our lines are larger than 70 characters, we should use wordwrap()
  $message = wordwrap($message, 70, &quot;\r\n&quot;);
  
  // Send
  $send = mail('jaisanas2@gmail.com', 'My Subject', $message);
  if ($send) {
      echo &quot;send&quot;;
  }
  else {
  echo &quot;fail&quot;;}
  ?&gt;
  </code></pre>
  <p>also i have change my google security become less secure
  i don't have any idea why, anyone help me ?</p>