Ruby Mailer Is Coming Up with an Eoferror

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



Leave a reply



Submit