Running ubuntu 14.04 ruby 2.0 Rails 4 Mail gem 2.5.4
In the rails console
mail = Mail.new do
*> from 'me@test.com'
*> to 'mbennon@gmail.com'
*> subject 'Here is the image you wanted'
*> body 'this is a test'
*>end
> mail.delivery_method :exim, :location => "/usr/sbin/exim"
> mail deliver
I receive the following error (before it gets to exim)
NoMethodError: undefined method
encoded' for #<String:0x0000000947f9d8> from /home/mark/.rvm/gems/ruby-2.0.0-p247/gems/mail 2.5.4/lib/mail/network/delivery_methods/exim.rb:46:in
block in call'
There is a method encoded in mail. It seems that it is just string at the time of the call...