title: Use PHP mail to send via smtp
body: <p>Does anybody know if you can configure php's mail() command so it will only use an SMTP server rather than the local sendmail? We are having trouble with emails being marked as spam.</p>
  
  <p>Our server is running RedHat 5 Enterprise.</p>
  
  <p>I am aware of various PHP libraries that act as an SMTP client but I'd rather configure PHP so mail() used an SMTP server directly.</p>