title: Php mail() with xampp and hMailServer
body: <p>I have windows 2012 server. I have installed email server (hMailServer) which is configured and send / receive emails correctly.</p>
  
  <p>But when I want send mail from php, (I have to use mail() function), nothing happen.</p>
  
  <p>In php.ini i set up:</p>
  
  <pre><code>[mail function]
  ; XAMPP: Comment out this if you want to work with an SMTP Server like     Mercury
  SMTP = 127.0.0.1
   smtp_port = 25
  </code></pre>
  
  <p>any idea where can be problem? Thank you</p>
  
  <p>edit:
  I tried</p>
  
  <pre><code>auth_username = smtp-username
  auth_password = smtp-password
  sendmail_from = you@yourserver.com
  </code></pre>
  
  <p>with different smtp servers and always receive this error:</p>
  
  <pre><code>Warning: mail(): SMTP server response: 530 SMTP authentication is required. 
  </code></pre>