Mail sent by PHP not being recieved by accounts on Google Apps [closed]

I’ve been trying to send mail through PHP’s mail() function to a Google Apps email address, along with other email addresses. I’ve been successful in sending to my email (MobileMe) and Gmail- but email sent to any address hosted on Google Apps fails. It seems as if the emails I send to Google Apps don’t even get into the inbox or even spam folder- it simply isn’t there.

Normal email works just fine- I can send email from my mail client just fine to the emails on Google Apps.

I also tried using Swift Mailer slong with a SMTP server instead of PHP’s mail() function, but still no luck. Help??


When diagnosing any delivery problem, your first step needs to be to look to your logs. Most MTAs will log via the mail facility of syslog, which by default will end up in either /var/log/maillog (on RHEL-derived systems) or /var/log/mail.log (Debian-derived systems) — or quite likely somewhere else entirely on some niche systems. The exception is Exim, which likes to put things in it’s own little world somewhere under /var/log/exim.

From there, error messages may or may not be clear, but a subtle use of Google and (at worst) a question here on Server Fault with the error message and context will probably result in a useful outcome.

Source : Link , Question Author : sman591 , Answer Author : womble

Leave a Comment