title: php mail() function not working
body: <p>I'm getting a 'could not instantiate mail function' error from PHPMailer. From reading around, I understand this to mean that the PHP mail() function isn't working for some reason.</p>
  
  <p>The results of phpinfo() for the mail settings are:</p>
  
  <p><img src="https://i.stack.imgur.com/sHvjT.png" alt="My PHP mail settings"></p>
  
  <p>To me, this means that mail() should work and that port 25 is open. Is that right?</p>
  
  <p>Is there anything else I can check to make this work please? I had a look at the docs for the mail() function, but I couldn't see what exceptions it threw and how I'd print them out to screen. I did a:</p>
  
  <pre><code>mail('name@email.com', "test", "test") or die("Doesn't work");
  </code></pre>
  
  <p>type test, but that's my error message and I could do with something a bit more helpful.</p>
  
  <p>Grateful for any help on this.</p>
  
  <p>Many thanks</p>