title: php mail() set hostname on windows
body: <p>Using the PHP <code>mail()</code> function is it possible to set a fully-qualified hostname for mail requests? The development environment is using Windows and using a Postfix mail server specified in php.ini using the <code>SMTP</code> directive. </p>
  
  <p>The problem is PHP is not using a fully-qualified hostname and I'm getting an error message like this:</p>
  
  <pre><code>SMTP server response: 504 5.5.2 &lt;pygorex1-COMPUTERNAME&gt;: Helo command rejected: need fully-qualified hostname
  </code></pre>
  
  <p>Or perhaps this is a Postfix problem?</p>