Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gmail and PHP MAIL function

Tags:

php

gmail

I have a small problem that i cannot for the life of me seem to solve. I have a php script which takes some user data and processes it and sends an email to admin and an email to the user with an activation key. This is all fine and dandy, but the problem is GMAIL accounts. The user gets the email no problem but if it is a GMAIL account there is no mail in the inbox or spam box. Just wondering anyone might have any solutions.

like image 797
user1180741 Avatar asked Dec 31 '25 00:12

user1180741


1 Answers

moved from my comment:

so across the board, NO gmail accounts get your email? Maybe your host is blacklisted, and your mail is just flat out banned? Is your server blacklisted? Have you checked? Also what is your /var/log/ mail queue result? Does gmail accept the mail?

Some tools, check if you were blacklisted here:

  • http://www.mxtoolbox.com/blacklists.aspx
  • http://whatismyipaddress.com/blacklist-check
  • Some more info on getting un-blacklisted: http://www.isipp.com/resources/am-i-blacklisted/

Be aware that sometimes it may take awhile to get de-listed, I had one server act up, and was blocked by hotmail, for a few months even after all places removed my ip.

like image 86
Jakub Avatar answered Jan 02 '26 13:01

Jakub