PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Nov 24, 2014 8:42 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Help in swiftmailer
PostPosted: Wed Aug 27, 2008 5:36 am 
Offline
Forum Newbie

Joined: Wed Aug 27, 2008 12:37 am
Posts: 3
There was a problem reading line 1 of an SMTP response. The response so far was:
[]. It

Why I am getting the above error message in swiftmailer?

could you help me out?

Please help me!!


Top
 Profile  
 
 Post subject: Re: Help in swiftmailer
PostPosted: Wed Aug 27, 2008 5:58 am 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
Moved to the Swift forum.


Top
 Profile  
 
 Post subject: Re: Help in swiftmailer
PostPosted: Thu Aug 28, 2008 6:32 am 
Offline
Forum Newbie

Joined: Wed Aug 27, 2008 12:37 am
Posts: 3
Please somebody help me!! :cry:


Top
 Profile  
 
 Post subject: Re: Help in swiftmailer
PostPosted: Fri Aug 29, 2008 1:07 pm 
Offline
Forum Newbie

Joined: Tue Jul 17, 2007 6:31 am
Posts: 11
can you post more details?


Top
 Profile  
 
 Post subject: Re: Help in swiftmailer
PostPosted: Mon Sep 15, 2008 1:44 pm 
Offline
Forum Commoner

Joined: Fri Oct 19, 2007 2:02 am
Posts: 55
Location: Vancouver, WA, USA
I am trying to help someone that is getting the exact same error.

The message he is getting back is:

Quote:
Fatal error: Uncaught exception 'Swift_ConnectionException' 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) ' 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 running this from a local machine, and connecting to an SMTP server.

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.


Top
 Profile  
 
 Post subject: Re: Help in swiftmailer
PostPosted: Mon Sep 15, 2008 6:32 pm 
Offline
Forum Commoner

Joined: Fri Oct 19, 2007 2:02 am
Posts: 55
Location: Vancouver, WA, USA
Well, the workaround was to comment out the throw exception.

First, note that the
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.


Top
 Profile  
 
 Post subject: Re: Help in swiftmailer
PostPosted: Thu Jul 28, 2011 2:30 am 
Offline
Forum Newbie

Joined: Thu Jul 28, 2011 2:25 am
Posts: 2
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
Quote:
Fatal error: Uncaught exception 'Swift_ConnectionException' 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) <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


Please give me a solution.
Thank you in advance

Jagan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group