Fatal error: Uncaught exception 'Swift_ConnectionException'

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
Forum Newbie
Posts: 2
Joined: Thu Jul 28, 2011 2:25 am

Fatal error: Uncaught exception 'Swift_ConnectionException'

Post by jagan_e »

Hi all
While sending mails, it is throwing exception for few mailids and taking too much time to process. Here is my exception
Fatal error: 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) <h3>Log Information</h3><pre>++ Log level changed to 2</pre>' in /var/www/html/myrewards/app/vendors/Swift/Connection/SMTP.php:250 Stack trace: #0 /var/www/html/myrewards/app/vendors/Swift.php(306): Swift_Connection_SMTP->read() #1 /var/www/html/myrewards/app/vendors/Swift.php(386): Swift->command('RCPT TO: <danny...', 250) #2 /var/www/html/myrewards/app/controllers/components/swift_mailer.php(299): Swift->send(Object(Swift_Message), Object(Swift_RecipientList), Object(Swift_Address)) #3 /var/www/html/myrewards/app/controllers/components/swift_mailer.php(321): SwiftMailerComponent->send('Rewards One e-N...') #4 /var/www/html/myrewards/app/controllers/newsletters_controller.php(788): SwiftMailerComponent->sendView('Rewards One e-N...', 'newsletter in /var/www/html/myrewards/app/vendors/Swift/Connection/SMTP.php on line 250
Need help. Thank you in advance
Post Reply