PDA

View Full Version : External MX Server = PHP Mail Problems



wyas
07-01-2007, 10:55 PM
We are testing out some external MX servers. All incoming e-mail is redirecting fine with the new MX settings in the control panel.

Any e-mail being sent from the web server on our contact form using the mail() function is not making it because the server thinks the mail server is still on localhost. How can I tell the web server that the mailboxes for our domain are not at localhost any more?

wildjokerdesign
07-02-2007, 07:11 AM
The mail() function uses sendmail. It may be easier for you to use SMTP to send the emails. There is a class called PHPMailer that might be usefull to you. http://phpmailer.sourceforge.net/ This class lets you use SMTP to send out your mails fairly easily.

It may be possible to configure sendmail to send to your other DNS but I have the feeling that on our VPS using the PHPMailer class is going to be easier then reconfiguring sendmail.