error messages

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
roscoe
Forum Commoner
Posts: 85
Joined: Tue Aug 05, 2003 10:24 am
Location: essex uk

error messages

Post by roscoe »

Fatal error:
Uncaught Error of type [Swift_Connection_Exception] with message [The SMTP connection failed to start [localhost:25]: fsockopen returned Error Number 110 and Error String 'Connection timed out']
@0 sendEmail() in /home/arsenal/public_html/maillist-admin.php on line 43
@1 Swift::Swift() in /home/arsenal/public_html/maillist-admin.php on line 182
@2 Swift::connect() in /home/arsenal/public_html/mailoutattach/mylib/Swift.php on line 109

in /home/arsenal/public_html/mailoutattach/mylib/Swift/Errors.php on line 99


host says no problem with fsockopen or smtp

This was working, any ideas?

Thanx
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

This is going to fail just like Swift does:

Code: Select all

$sock = fsockopen("your-server.com", 25, $errno, $errstr, 30);
var_dump($sock);
var_dump($errstr);
var_dump($errno);
Take that back to your host and ask why it doesn't work if they say they support fsockopen(). Some hosts only support fsockopen() to port 80.
EoN
Forum Newbie
Posts: 22
Joined: Thu Oct 11, 2007 5:57 am

Post by EoN »

I just started getting the same error message as well. This was working perfectly last night! I'm not sure what caused this to start happening? Any ideas? I have been doing a lot of tests - is it possible it's blocking because it thinks we've spammed or something?
chuckl
Forum Commoner
Posts: 61
Joined: Wed May 23, 2007 7:36 am

Post by chuckl »

Typically means the IP address port or mailserver name is wrong, the port is blocked or the mail server is down. Telnet to mailserver.domain.com mailport e.g. telnet mymailserver.mydomain.com 25, and see if you get an SMTP response.
Post Reply