when i try to check any email address exist or not by SMTP by PHP script.
getting following error.....
Warning: fsockopen(): unable to connect to gmail-smtp-in.l.google.com:25 (Connection timed out) in /home/mail/smtp_validateEmail.class.php on line 155
THe code is working on localhost but did not work on web server it gives connection time out error and fsockopen() error on line 155 of file smtp_validateEmail.class.php.
someone suggest me to change port no i have changed port no 25 to 587 but still get this error.
Please solve this problem.
when i try to check any email address exist or not by SMTP by PHP script. getting following error..... Warning: fsockopen(): unable to connect to gmail-smtp-in.l.google.com:25 (Connection timed out) in /home/mail/smtp_validateEmail.class.php on line 155
if ($this->sock = fsockopen($host, $this->port, $errno, $errstr, (float) $timeout)) { stream_set_timeout($this->sock, $this->max_read_time); break; } }
THe code is working on localhost but did not work on web server it gives connection time out error and fsockopen() error on line 155 of file smtp_validateEmail.class.php.
someone suggest me to change port no i have changed port no 25 to 587 but still get this error. Please solve this problem.