There was a problem reading line 1 of an SMTP response. The response so far was:<br />[]. It
Why I am getting the above error message in swiftmailer?
could you help me out?
Please help me!!
Help in swiftmailer
Moderators: Chris Corbyn, General Moderators
Re: Help in swiftmailer
Moved to the Swift forum.
Re: Help in swiftmailer
Please somebody help me!! 

-
- Forum Newbie
- Posts: 11
- Joined: Tue Jul 17, 2007 6:31 am
Re: Help in swiftmailer
can you post more details?
-
- Forum Commoner
- Posts: 55
- Joined: Fri Oct 19, 2007 2:02 am
- Location: Vancouver, WA, USA
Re: Help in swiftmailer
I am trying to help someone that is getting the exact same error.
The message he is getting back is:
He is in process of sending out about 8000 messages. About every 100 messages, he gets this error and the system stops. If he just sends the one email that crashed, he will get the same error, so adding a delay does not help. There appears to be some kind of problem with the email response that Swift does not like. Unfortunately, he does not have access to the mail logs, so debugging this has been difficult, and we have not yet figured out a workaround.
The message he is getting back is:
He is running this from a local machine, and connecting to an SMTP server.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) ' in C:\wamp\www\SwiftMailer\lib\Swift\Connection\SMTP.php:250 Stack trace: #0 C:\wamp\www\SwiftMailer\lib\Swift.php(306): Swift_Connection_SMTP->read() #1 C:\wamp\www\SwiftMailer\lib\Swift.php(386): Swift->command('RCPT TO: <angel...', 250) #2 C:\wamp\www\Sweepstakes Manager\manager\mail\doMail_YDI08_Grand_Swift.php(145): Swift->send(Object(Swift_Message), Object(Swift_RecipientList), Object(Swift_Address)) #3 {main} thrown in C:\wamp\www\SwiftMailer\lib\Swift\Connection\SMTP.php on line 250
He is in process of sending out about 8000 messages. About every 100 messages, he gets this error and the system stops. If he just sends the one email that crashed, he will get the same error, so adding a delay does not help. There appears to be some kind of problem with the email response that Swift does not like. Unfortunately, he does not have access to the mail logs, so debugging this has been difficult, and we have not yet figured out a workaround.
-
- Forum Commoner
- Posts: 55
- Joined: Fri Oct 19, 2007 2:02 am
- Location: Vancouver, WA, USA
Re: Help in swiftmailer
Well, the workaround was to comment out the throw exception.
First, note that the <br /> should not be in the error message because the exception appears to output htmlentities.
The response that we were getting back is a '250 ok' message, and sometimes we would get ' 250 ok' with a space. The ones with a space would throw the exception. A fix might be to trim the response message.
First, note that the <br /> should not be in the error message because the exception appears to output htmlentities.
The response that we were getting back is a '250 ok' message, and sometimes we would get ' 250 ok' with a space. The ones with a space would throw the exception. A fix might be to trim the response message.
Re: Help in swiftmailer
Hi i am facing similar kind of exception. This exception is not coming for gmail, yahoo mail ids and it is coming for other domains.
exception is
Thank you in advance
Jagan
exception is
Please give me a solution.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
Thank you in advance
Jagan