Fatal error: Uncaught Error of type [Swift_Connection_Ex...

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
ryan_b83
Forum Newbie
Posts: 1
Joined: Wed Jun 25, 2008 8:30 am

Fatal error: Uncaught Error of type [Swift_Connection_Ex...

Post by ryan_b83 »

Hello, I continue to have random Fatal Errors while running swift.

Fatal error:
Uncaught Error of type [Swift_Connection_Exception] with message [There was a problem reading line 1 of an SMTP response. The response so far was:
[]. It appears the connection has died without saying goodbye to us! Too many emails in one go perhaps? (fsockopen: #0) ]
@0 siteCustom::sendEmail() in /home/somedir/public_html/somefile.php on line 227
@1 Swift::send() in /home/somedir/public_html/classes/somefile.class.php on line 680
@2 Swift::command() in /home/somedir/public_html/swift/lib/Swift.php on line 482

in /home/somedir/public_html/swift/lib/Swift/Errors.php on line 99

I read on some other forums that upgrading to PHP 5 would resolve this issue. So I upgraded the entire dedicated server and I am still getting this error randomly. Is there anyway to solve this error, or at the very least suppress it and not send the mail but at least not cause a Fatal Error on the page?

Thank you in advance for your help!
Ryan
Post Reply