I am hosting a client’s site while they are running an exchange server at their location to handle the email. Whenever I try to send email via PHP to one of their email addresses it fails as it is looking for the address on the local system.
Can I force the mail function to look outside of the server for sending mail?
I’m on a Media Temple dedicated virtual box.
I’m guessing the easier way would be to not use the
mailfunction, but a library that deals with sending mail by SMTP — the SMTP being on your client’s server.You can for instance take a look at Swift Mailer (which has a pretty good reputation, and is used by the Symfony Framework), or
PEAR::Mail.