Open GoogleCodeExporter opened 8 years ago
Ok, I understood what the error was, sorry for reporting a wrong issue, still
it prints unexpected results if the host is wrong, example:
$email = 'siakjfafdahfdhssgfgfkfsfsj@gadsasddsamail.com';
$SMTP_Validator = new SMTP_validateEmail();
$SMTP_Validator->debug = true;
$results = $SMTP_Validator->validate(array($email));
echo $email.' is '.($results[$email] ? 'valid' : 'invalid')."\n";
prints
Array
(
[gadsasddsamail.com] => 0
)
try gadsasddsamail.com:25
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Host
sconosciuto. in C:\server\htdocs\res\validateEmail.php on line 154
Warning: fsockopen(): unable to connect to gadsasddsamail.com:25
(php_network_getaddresses: getaddrinfo failed: Host sconosciuto. ) in
C:\server\htdocs\res\validateEmail.php on line 154
Notice: Undefined index: siakjfafdahfdhssgfgfkfsfsj@gadsasddsamail.com in
C:\server\htdocs\mailtest.php on line 8
siakjfafdahfdhssgfgfkfsfsj@gadsasddsamail.com is invalid
Original comment by Fabiogio...@gmail.com
on 14 Aug 2012 at 9:09
Original issue reported on code.google.com by
Fabiogio...@gmail.com
on 14 Aug 2012 at 9:00