Swift_BadResponseException connecting to Gmail

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
jaclayton
Forum Newbie
Posts: 1
Joined: Thu Jun 05, 2008 4:48 am

Swift_BadResponseException connecting to Gmail

Post by jaclayton »

Swift Version: 3.3.2
PHP Version 5
Operating System: Ubuntu Hardy Heron
Connecting to: Gmail
I copied the send email code direct from the documentation on the Swift website.

The following error is logged when I send an email through to Gmail using the swift system. It started a couple of weeks ago (but I was only told about it today) and has apparently been getting bigger. From discussions with the user, the error occurs every time but the recipients seem to be getting their emails through satisfactorily (or they've not complained about not getting them, at least).

Here's the error:

Code: Select all

Fatal error: Uncaught exception 'Swift_BadResponseException' with message 'Expected response code(s) [354] but got response [421 4.7.0 Temporary System Problem. Try again later (WS). t2sm4781838gve.9]<h3>Log Information</h3><pre>++ Log level changed to 4 ++ Forcing ESMTP mode. HELO is EHLO. ++ Forcing ESMTP mode. HELO is EHLO. ++ Trying to connect... ++ Trying to connect to SMTP server at 'tls://smtp.gmail.com:465 << 220 mx.google.com ESMTP t2sm4781838gve.9 >> EHLO [<!-- server IP -->] << 250-mx.google.com at your service, [<!-- server IP -->] 250-SIZE 28311552 250-8BITMIME 250-AUTH LOGIN PLAIN 250 ENHANCEDSTATUSCODES ++ SMTP extension 'SIZE' reported with attributes [28311552]. ++ SMTP extension '8BITMIME' reported with attributes []. ++ SMTP extension 'AUTH' reported with attributes [LOGIN, PLAIN]. ++ SMTP extension 'ENHANCEDSTATUSCODES' reported with attributes []. ++ Trying to authenticate with username '<!-- correct address@ googlemail.com -->'. ++ No authenticators loaded; looking for defaults. ++ Authentication in /var/www/lims/reporting/swiftmail/lib/Swift.php on line 250
I'm getting the users to save the next batch of error messages over the following few days, see if it's the same or if there are significant differences in the details.

My google-fu may be weak today as I've not been able to find anything. Any and all help gratefully received.
Post Reply