title: Sending mail in PHP using Exchange SMTP
body: <p>I have a client that uses Exchange (although I'm not sure which version). From what I know, they do have an SMTP for their Exchange however supposedly I cannot use it since my system is on PHP+Linux. It will not work for the Exchange being on Windows licensed server. How true is it? I am trying to send the mail through SMTP and not directly to the Exchange server.</p>
  
  <p>They did give the details on the SMTP and I have tried and yes, it doesn't work. I got an error 'Could not connect to SMTP host'.</p>
  
  <p>What are my other options in sending mail through PHP? Been googling around and found something called WebDav. Would that be a wise choice?</p>
  
  <p>EDIT>
  I guess something went right overnight however it's not everything. I can (presumably) connect to the SMTP however I can't send email to other domains. I tried sending to it's own domain and it works. Checked my inbox and the email is there however if I send to Live or GMail, it doesn't work. It gives me this error: </p>
  
  <pre><code>PHPMAILER_RECIPIENTS_FAILEDemail@email.com
  </code></pre>
  
  <p>The email@email.com is a correct existing email. I have even tested with GMail and there's no problem in sending. Now what I would like to know is where the problem lies. Could it really be in the coding or the SMTP server?</p>
  
  <p>As an extra note, I'm using Joomla 1.5.22.</p>