vermaneerajin / php-smtp-email-validation

Automatically exported from code.google.com/p/php-smtp-email-validation
0 stars 0 forks source link

timeout on smtp #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. require_once './smtpvalidate.class.php';

// Capture the proposed email and attempt to validate it
$email = $data['email'];

$emailvalidate = new SMTP_validateEmail();
$emailvalidate->debug = FALSE;

$result = $emailvalidate->validate(array($email));
if (!$result[$email])
{
    trigger_error($email.' is '.($result ? 'valid' : 'invalid')."\n");
} 

What is the expected output? What do you see instead?
The error in the trigger_error statement. 

[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to
gmail-smtp-in.l.google.com:25 (Connection timed out)
[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to
alt2.gmail-smtp-in.l.google.com:25 (Connection timed out)
[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to
alt1.gmail-smtp-in.l.google.com:25 (Connection timed out)
[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to
gsmtp183.google.com:25 (Connection timed out)
[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to
gsmtp147.google.com:25 (Connection timed out)
[phpBB Debug] PHP Notice: in file /smtpvalidate.class.php on line 154:
fsockopen() [function.fsockopen]: unable to connect to gmail.com:25
(Connection timed out)

What version of the product are you using? On what operating system?
Current. Cent OS

Please provide any additional information below.

Original issue reported on code.google.com by griffin.ray@gmail.com on 4 Feb 2009 at 8:19

GoogleCodeExporter commented 8 years ago
I am having the same issue.  fsockopen times out.  I am running:

PHP 5.2.8.  
Linux 2.6.27-grsec 

Original comment by michele....@gmail.com on 15 Apr 2009 at 2:29

GoogleCodeExporter commented 8 years ago
Does it happen all the time for different domains? 

That is, are you use the MTA wasn't just down for a short period?

Original comment by buca...@gmail.com on 15 Apr 2009 at 6:35

GoogleCodeExporter commented 8 years ago
It happens all the time for any domain that I am checking.

Original comment by michele....@gmail.com on 16 Apr 2009 at 6:37

GoogleCodeExporter commented 8 years ago
fsockopen(), unable to connect is what I get - which in the end gives the same 
effect by timing out.

Original comment by steinh...@gmail.com on 9 Jul 2009 at 11:12

GoogleCodeExporter commented 8 years ago
This isn't working at all.

Warning: fsockopen() [function.fsockopen]: unable to connect to
d.mx.mail.yahoo.com:25 (Connection timed out) in 
/lib/smtp_validateEmail.class.php on
line 154

It does emit that on all MX in array.

Original comment by ferdie.d...@gmail.com on 20 Feb 2010 at 4:14

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am having the same problem on most addresses. Especially Gmail, AOL, Hotmail, 
and Yahoo servers...

I get the same errors, and connection keeps timing out.

Script works fine for testing my own personal email on the shared server I am 
using. So I know that it at least works sometimes.

Any ideas or work arounds yet?

Original comment by ryan.a.t...@gmail.com on 15 Jul 2010 at 12:07

GoogleCodeExporter commented 8 years ago
having the same issue especially with gmail.com server. looking for the 
solution...

Original comment by harutyun...@gmail.com on 1 Sep 2010 at 5:45

GoogleCodeExporter commented 8 years ago
Same issue. Confirmed we have no firewall issues. We can actually telnet from 
the console alltough we can not when we do as www-data user on the console.

Original comment by lui...@gmail.com on 6 Mar 2012 at 11:00

GoogleCodeExporter commented 8 years ago
Warning: fsockopen() [function.fsockopen]: unable to connect to 
alt1.gmail-smtp-in.l.google.com:25 (Connection refused) in 
....../smtp_validateEmail.class.php on line 154

This is error I am getting. Do u have any solution, Mr Author?

Original comment by pearlyga...@gmail.com on 26 Mar 2012 at 4:47

GoogleCodeExporter commented 8 years ago
Gmail uses port 993 and SSL. It will fail on port 25.

Original comment by beachthe...@beachtherapist.com on 8 May 2012 at 2:56

GoogleCodeExporter commented 8 years ago
for sinlge email, it's working perfectly , but for multiple emails, it's not 
working. 

Original comment by ksathish...@gmail.com on 16 Apr 2013 at 6:54

GoogleCodeExporter commented 8 years ago
Warning: fsockopen(): unable to connect to gmail.com:993 (A connection attempt 
failed because the connected party did not properly respond after a period of 
time, or established connection failed because connected host has failed to 
respond. ) in C:\xampp\htdocs\mail\smtp_validateEmail.class.php on line 154 

ansari.mufid@gmail.com is invalid

i have also same problem if my email is valid

Original comment by mufid.a...@thefreshersworld.net on 31 Oct 2013 at 12:40

GoogleCodeExporter commented 8 years ago
Can anyone fix this? I have the same issue

Original comment by Trd.vand...@gmail.com on 27 May 2015 at 2:42