Page 1 of 1

Problem with fsockopen() (Not Firewall Related)

Posted: Tue Mar 10, 2009 7:19 am
by Armorfist
Hello,

I just downloaded Swift Mailer 4, but I'm having difficulties sending mail with SMTP. It returns the following error:
Message: fsockopen() [function.fsockopen]: unable to connect to :25 (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. )

Filename: Transport/StreamBuffer.php

Line Number: 243
Its not a firewall problem as I can connect with the following code:

Code: Select all

 
       $fp = fsockopen ($url, 25, $errno, $errstr, 30);
                if ($fp) {
                        echo "Congratulations: FSock seems to be working properly on your server.";           
                        fclose ($fp);
                }
 
Anyone has any ideas?

Thanks,
Frederico

Re: Problem with fsockopen() (Not Firewall Related)

Posted: Tue Mar 10, 2009 7:26 am
by Chris Corbyn
It looks like there's an error in your code:
unable to connect to :25
The bit before the colon is supposed to be the SMTP server address (e.g. smtp.host.tld:25). Undefined variable perhaps? fsockopen() is probably defaulting to 0.0.0.0:25 and dying.

Re: Problem with fsockopen() (Not Firewall Related)

Posted: Tue Mar 10, 2009 7:35 am
by Armorfist
Stupid me. It was an undefined variable. Working perfectly now!

Thank you very much and great job on Swift, I love it!

Re: Problem with fsockopen() (Not Firewall Related)

Posted: Tue Mar 10, 2009 7:39 am
by Chris Corbyn
Good job :) Easy mistake to make.

Re: Problem with fsockopen() (Not Firewall Related)

Posted: Sat Nov 14, 2009 4:26 am
by pacella
How can i get limewire to work when a firewall is on? For example, when i downloaded limewire, it said that limewire could not turn on because of a firewall program.

Re: Problem with fsockopen() (Not Firewall Related)

Posted: Tue Feb 16, 2010 11:26 pm
by anindeeta
How do I stop a firewall from my work computer? I am a teacher and I work part-time @ home as an independent agent. The schedule to grab hours for my second job rolls out while I am teaching. I cannot open the schedule from my work computer because there is a firewall...it is unable to open application "tubsock". I have tried using a laptop but you can not see the rollout schedule on a Mac. Any suggestions? Please help!
__________________________
affiliateelite ~ affiliateelite.com ~ adgooroo ~ adgooroo.com

Re: Problem with fsockopen() (Not Firewall Related)

Posted: Tue Feb 16, 2010 11:31 pm
by AbraCadaver
How do I stop a firewall from inhibiting my success with beautiful women? Error is: Deny TCP (no connection)...