title: How do I specify to PHP that mail() should be sent using an external mail server?
body: <p>I have my email hosted at Rackspace Email and would like to use that as my mail server for the contact form on my website.</p>
  
  <p>Looking at the php.ini file, I'm only able to specify the <code>sendmail_path</code> on UNIX systems, from which I've read points to the program that actually sends mail on the server.</p>
  
  <p>I do not want to send mail from my Ubuntu server since I'm not experienced enough to make a secure setup for email... I would like to relay everything to Rackspace's <code>mail.emailsrvr.com</code>.</p>
  
  <p>My question is, how do I specify to the PHP setup on my server that the <code>mail()</code> function should be using an external mail server?</p>