PDA

Click to See Complete Forum and Search --> : fsockopen() problem


onh1986
May 27th, 2007, 02:26 PM
Hello
I use PHP Mailer to send messages from my website to users.
and I use remote smtp.
When I send message, I got this error:
Warning: fsockopen() [function.fsockopen]: unable to connect to smtp1.expenglish.com:25 (Connection timed out) in /mounted-storage/home43a/sub009/sc32050-AYNZ/www/mail/class.smtp.php on line 105
Message could not be sent.
Mailer Error: Language string failed to load: connect_host

Yesterday it was working fine, today I got this error.
Although I could send message by using Outlook.
And my webhost said that they haven't blocked outgoing connections or disabled the fsockopen().

So what's wrong?
I need your help please

visualAd
May 27th, 2007, 02:36 PM
I can connect fine from my end. Can you connect using a telnet/putty?

onh1986
May 27th, 2007, 04:30 PM
How can make a connection using telnet in my website?

visualAd
May 27th, 2007, 04:38 PM
>telnet smtp1.expenglish.com 25
220-outbound.mailhop.org ESMTP Exim 4.63 Sun, 27 May 2007 17:37:55 -0400
220- This is a private server for DynDNS MailHop Outbound customers.
220- See http://www.mailhop.org/outbound/ for details.
220 All Access Is Logged. Authorized Users Only.

onh1986
May 27th, 2007, 06:42 PM
I could connect to smtp1.expenglish.com in localhost,
but I couldn't in my website.
I got the error above.

What's wrong?

visualAd
May 28th, 2007, 03:49 AM
Is the web server on the same PC, if not you need to check from the PC with the web server installed.

It is possible that the web server is blocking outgoing connections on port 25.

onh1986
May 28th, 2007, 11:12 AM
I tried it on other PCs, other servers.
And my server doen't block port 25.

visualAd
May 28th, 2007, 11:26 AM
Can you connect to other SMTP servers?

onh1986
May 28th, 2007, 01:09 PM
I can just the SMTP of the server which provide my website.

visualAd
May 28th, 2007, 01:14 PM
?? What?

I am not asking if you can send email from them, just make a connection.

onh1986
May 28th, 2007, 02:03 PM
There is a host providing my website and this host has own SMTP server that users can use it, that's "smtp1.servage.net"
My website can connect to "smtp1.servage.net:25" only, it can't connect to "outbound.mailhop.org:25" and "smtp.gmail.com:465".

visualAd
May 28th, 2007, 02:34 PM
It clearly is not connecting to smtp1.servage.net. As I asked earlier, can you SSH into the hosts web server and use Telnet to make the connection?

onh1986
May 28th, 2007, 04:37 PM
I asked my webhost and they said "possible issue with load balancer script".
What does that mean?