Remote but not local error

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
tigerbaiter
Forum Newbie
Posts: 2
Joined: Sun Dec 07, 2008 9:39 am

Remote but not local error

Post by tigerbaiter »

I am getting this error when I try to make an SMTP connection to a remote host...

Code: Select all

<b>Fatal error</b>:  Uncaught exception 'Swift_ConnectionException' with message 'There was a problem reading line 1 of an SMTP response. The response so far was:<br />[].  It appears the connection has died without saying goodbye to us! Too many emails in one go perhaps? (fsockopen: #0) '
I can telnet to port 25 of the server no problem and enter SMTP commands. I can change the remote server to localhost and my local EXIM accepts the mail fine.

Any thoughts?
tigerbaiter
Forum Newbie
Posts: 2
Joined: Sun Dec 07, 2008 9:39 am

Re: Remote but not local error

Post by tigerbaiter »

My fault - a firewall problem.

Thanks for the brilliant library Chris. If only all code could be like this...
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Remote but not local error

Post by Chris Corbyn »

Glad you worked it out :)
Post Reply