Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails EOFError (end of file reached) when saving a devise user

Tags:

I'm getting this error in production when trying to create a user (i'm using the devise gem).

EOFError (end of file reached): 

I hit this problem before and it was due to my smtp settings using zoho mail.

I believe my configuration below is what fixed the problem:

ActionMailer::Base.delivery_method = :smtp   ActionMailer::Base.smtp_settings = {               :address              => "smtp.zoho.com",    :port                 => 465,                 :domain               => 'example.com',      :user_name            => '[email protected]',   :password             => 'password',            :authentication       => :login,   :ssl                  => true,   :tls                  => true,   :enable_starttls_auto => true     } 

Now we've added SSL to the site and I believe that is what is causing this error to occur now.

Does anyone have any insight into this error or zoho mail smtp settings with SSL?

like image 777
Catfish Avatar asked May 29 '13 16:05

Catfish


1 Answers

This error was caused by not having my config/initializers/devise.rb specifying the correct email address for config.mailer_sender.

like image 124
Catfish Avatar answered Sep 22 '22 18:09

Catfish