title: Use default PHP mail function with SMTP server on Linux
body: <p>I am working on a php/c# project which is an Email Server with a web interface to manage the Email Server application. </p>
  
  <p>The program is supposed to work on windows and linux but I have been mostly doing my development in windows. </p>
  
  <p>I've not come onto testing in Linux and have found a horrible problem. </p>
  
  <p>From what I have googled on Windows PHP you can choose an SMTP server that you want to use, but it looks as if on Linux you don't have this option so when PHP sends an email it completely bypasses my program. </p>
  
  <p>Is there a way to make PHP use an SMTP server of your choice, I know you can use PEAR to overrride the SMTP settings but I'd prefer that the standard PHP mail function would work so other software like PHPBB forum would send emails via my SMTP server instead of the default php mail. </p>
  
  <p>Is this something that is possible or is my only option to use pear?</p>