Note that there are some explanatory texts on larger screens.

plurals
  1. POEOFError error trying to use Amazon SES via SMTP with Rails 3.1.3
    primarykey
    data
    text
    <p>I have a Rails app configured to use Amazon SES via SMTP. When I try and send email, though, it appears to timeout after a minute, and I get an EOFError. It smells like a configuration issue--the email seems to be constructed fine, and I can send myself test emails from the AWS SES console. This is in sandbox mode, and the app is running in development mode, but both the sending and receiving emails have been verified with SES, and development.rb is set up with this:</p> <pre><code>config.action_mailer.raise_delivery_errors = true config.action_mailer.delivery_method = :smtp </code></pre> <p>I've tried a million config variations; this is starting to drive me bananas. Any help or guidance would be very, very appreciated. More details:</p> <p>The smtp config, which I have in an initializer:</p> <pre><code>ActionMailer::Base.smtp_settings = { :address =&gt; "email-smtp.us-east-1.amazonaws.com", :port =&gt; "465", :authentication =&gt; :plain, :enable_starttls_auto =&gt; true, :user_name =&gt; "1234", :password =&gt; "abcde" } </code></pre> <p>The logs with the error, a bit truncated for brevity:</p> <pre><code>Sent mail to john@phu.com (59929ms) Date: Tue, 20 Dec 2011 03:08:37 -0800 From: contact@phu.com To: john@phu.com Message-ID: &lt;4ef06cb5ed3c_d73c3fc604c34d4491943@Johns-MacBook-Pro.local.mail&gt; Subject: Your invitation to Phu Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit &lt;!DOCTYPE html&gt; .... Completed 500 Internal Server Error in 60564ms EOFError (end of file reached): app/controllers/admin_controller.rb:61:in `block in send_invite' app/controllers/admin_controller.rb:46:in `send_invite' </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload