|
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
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.
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.
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?
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.
|