Ruby mailer is coming up with an EOFError
Alright, thank you guys, I actually had malformed code in the UserMailer. The actual code I had in the from line had a <> encasing an email address and had the senders name on the outside. Though that has worked on some of the private email servers I have used/work on, it does not work on Hostmonster. Soo, for anyone that ends up using Hostmonster in the future, keep everything about your mailers configuration simple (the message can be complicated but the SMTP Config needs to be simple). Thanks.
Rails EOFError (end of file reached) when saving a devise user
This error was caused by not having my config/initializers/devise.rb specifying the correct email address for config.mailer_sender
.
Rails 4: EOFError: end of file reached following any email in DEVELOPMENT only
For those who are stuck....this worked but I unclear why.
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "myprojectdomain.com",
user_name: "xxxx@gmail.com",
password: "xxxx",
authentication: 'plain',
enable_starttls_auto: true
}
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
EOFError - end of file reached when using Zoho mail
I managed to solve the problem. I had to set the default address in application_mailer.rb
file
default from: 'Business Name <info@mydomainname.com>'
EOF Error When Sending Mail With Sidekiq
Turns out it was an issue with the OpenSSL included in RVM's ruby-2.0.0-p353. Upgrading to ruby-2.1.1 solved the issue
DelayedJobAdapter fails with EOFError: end of file reached
It turned out that I simply forgot to set up env variables for my Office365 account. They were set up in apache2 envvars, but when launching rake jobs:run they should have been set up separately.
I managed to identify this when I tried to send through Google. And Google did said that SMTP authentication failed. It's really weird that with Office365 it complains with EOFError.
Related Topics
You Don't Have Write Permissions into the /Var/Lib/Gems/1.9.1 Directory
Exception_Notification for Delayed_Job
Expected #Count to Have Changed by 1, But Was Not Given a Block
Rails Devise - Current_User Is Nil
Why Do Ruby Procs/Blocks with Splat Arguments Behave Differently Than Methods and Lambdas
Printing Elements of Array Using Erb
Ruby Not Finding New Version of Openssl
Install Ruby 2.2 on MAC Osx Catalina with Ruby-Install
Determine the Class to Which a Method Belongs in Rails
Ruby Incorrectly Parses 2 Digit Year
Ubuntu 12.10 - Ruby Gem Rmagick Missing Dependency Issue
How Can One Set Property Values When Initializing an Object in Ruby
Converting String "2½" (Two and a Half) into 2.5
Instance Variable, Class Variable and the Difference Between Them in Ruby