PHP Classes

Unable to connect to gmail, yahoo, hotmail, cisco

Recommend this page to a friend!

      PHP Email validation  >  PHP Email validation package blog  >  How to Correct Email ...  >  All threads  >  Unable to connect to gmail, yahoo,...  >  (Un) Subscribe thread alerts  
Subject:Unable to connect to gmail, yahoo,...
Summary:Unable to connect to gmail, yahoo, hotmail, cisco
Messages:5
Author:Peter Kahl
Date:2012-01-24 03:23:38
Update:2012-01-24 19:21:02
 

  1. Unable to connect to gmail, yahoo,...   Reply   Report abuse  
Picture of Peter Kahl Peter Kahl - 2012-01-24 03:23:38
This script works great for many hosts (emails), but in certain cases (gmail.com etc.) the fsockopen fails.

I have found sites that provide online email verification and they can easily and quickly validate GMAIL addresses. PLEASE have a look at this site and try for yourself: http://www.email-unlimited.com/tools/verify-email.aspx

  2. Re: Unable to connect to gmail, yahoo,...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-01-24 03:41:06 - In reply to message 1 from Peter Kahl
A common problem is that some shared hosting companies block the outgoing port 25. That prevents the class to connect to the destination server and verify whether the recipient e-mail address is valid.

There is nothing that can be done about that.

Anyway, I tried testing a gmail address in that page and it worked well. If it did not work well, maybe it was a temporary connectivity problem.

  3. Re: Unable to connect to gmail, yahoo,...   Reply   Report abuse  
Picture of Peter Kahl Peter Kahl - 2012-01-24 05:48:59 - In reply to message 2 from Manuel Lemos
Thank you for the reply.

My wild guess is that my server's IP may be blacklisted and the remote SMTP does not allow the connection.

  4. Re: Unable to connect to gmail, yahoo,...   Reply   Report abuse  
Picture of Peter Kahl Peter Kahl - 2012-01-24 11:13:31 - In reply to message 2 from Manuel Lemos
Manuel,

I have just installed your SMTP mailing class on the same server and got it to work with GMAIL SMTP using both ports 25 and 465. These ports are not being blocked on my server.

Do you think that your email validation class deserves to be looked at?

  5. Re: Unable to connect to gmail, yahoo,...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-01-24 19:21:03 - In reply to message 4 from Peter Kahl
The SMTP class uses the same code to connect and deliver messages.

The only thing it does first is to resolve the DNS records to find the e-mail address SMTP server address. That is done with PHP GetMXRR function before attempting to connect to the destination SMTP server.

If that call succeeds the class attempts to connect. If the connection fails it is because some other reason in your server that prevents the connection.