PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Oct 22, 2018 8:29 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Mar 10, 2009 7:19 am 
Offline
Forum Newbie

Joined: Tue Mar 10, 2009 7:15 am
Posts: 2
Hello,

I just downloaded Swift Mailer 4, but I'm having difficulties sending mail with SMTP. It returns the following error:

Quote:
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:

Syntax: [ Download ] [ Hide ]
 
       $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


Top
 Profile  
 
PostPosted: Tue Mar 10, 2009 7:26 am 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
It looks like there's an error in your code:

Quote:
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.


Top
 Profile  
 
PostPosted: Tue Mar 10, 2009 7:35 am 
Offline
Forum Newbie

Joined: Tue Mar 10, 2009 7:15 am
Posts: 2
Stupid me. It was an undefined variable. Working perfectly now!

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


Top
 Profile  
 
PostPosted: Tue Mar 10, 2009 7:39 am 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
Good job :) Easy mistake to make.


Top
 Profile  
 
PostPosted: Sat Nov 14, 2009 5:26 am 
Offline
Forum Newbie

Joined: Thu Nov 12, 2009 6:11 am
Posts: 1
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.


Last edited by pacella on Mon Jun 14, 2010 1:36 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Feb 17, 2010 12:26 am 
Offline
Forum Newbie

Joined: Sat Feb 13, 2010 1:11 am
Posts: 1
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


Last edited by anindeeta on Sat Feb 20, 2010 1:21 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Feb 17, 2010 12:31 am 
Offline
DevNet Master
User avatar

Joined: Mon Feb 24, 2003 11:12 am
Posts: 2572
Location: The Republic of Texas
How do I stop a firewall from inhibiting my success with beautiful women? Error is: Deny TCP (no connection)...

_________________
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group