Does the PHP mail() function work if I don’t own the MX record

Mar 12, 2012   //   by   //   Blog, PHP Tutorial  //  No Comments

Yes. It will work just fine. I have a PHP script using the mail() function with the MX records set to Google Apps.

If the two scripts are on different hosts (it’s a bit unclear from your post), then make sure that the host doesn’t block some of the custom headers. I had issues with this when creating my script, but removing all but the From header fixed the problem.

Leave a comment

Share This Post

RSS Wordpress News