|
-
May 27th, 2007, 02:26 PM
#1
Thread Starter
Addicted Member
fsockopen() problem
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
-
May 27th, 2007, 02:36 PM
#2
Re: fsockopen() problem
I can connect fine from my end. Can you connect using a telnet/putty?
-
May 27th, 2007, 04:30 PM
#3
Thread Starter
Addicted Member
Re: fsockopen() problem
How can make a connection using telnet in my website?
-
May 27th, 2007, 04:38 PM
#4
Re: fsockopen() problem
Code:
>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.
-
May 27th, 2007, 06:42 PM
#5
Thread Starter
Addicted Member
Re: fsockopen() problem
I could connect to smtp1.expenglish.com in localhost,
but I couldn't in my website.
I got the error above.
What's wrong?
-
May 28th, 2007, 03:49 AM
#6
Re: fsockopen() problem
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.
-
May 28th, 2007, 11:12 AM
#7
Thread Starter
Addicted Member
Re: fsockopen() problem
I tried it on other PCs, other servers.
And my server doen't block port 25.
-
May 28th, 2007, 11:26 AM
#8
Re: fsockopen() problem
Can you connect to other SMTP servers?
-
May 28th, 2007, 01:09 PM
#9
Thread Starter
Addicted Member
Re: fsockopen() problem
I can just the SMTP of the server which provide my website.
-
May 28th, 2007, 01:14 PM
#10
Re: fsockopen() problem
?? What?
I am not asking if you can send email from them, just make a connection.
-
May 28th, 2007, 02:03 PM
#11
Thread Starter
Addicted Member
Re: fsockopen() problem
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".
-
May 28th, 2007, 02:34 PM
#12
Re: fsockopen() problem
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?
-
May 28th, 2007, 04:37 PM
#13
Thread Starter
Addicted Member
Re: fsockopen() problem
I asked my webhost and they said "possible issue with load balancer script".
What does that mean?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|