title: setting smtp on php.ini with authentication
body: <p>I'm setting up smtp on <code>IIS</code> web server using <code>php</code></p>
  
  <p>In the <code>php.ini</code> file the smtp section as follow:</p>
  
  <pre><code>[mail function]
  SMTP = outbound.mailhop.org
  smtp_port = 25
  
  auth_username = my_dyndns_username
  auth_password = pwd
  
  sendmail_from = no-reply@website.com
  </code></pre>
  
  <p>The problem is that when I try to call the mail() function the smtp server says </p>
  
  <pre><code>SMTP server response: 550 You must authenticate to use Dyn Standard SMTP
  </code></pre>
  
  <p>where can I tell IIS (or php) the username and password in order to be authenticated on dyndns server?</p>
  
  <p>Dario</p>