Using irb the mail library worked fine, now I am creating my first ruby script.
I am getting the error:
testmail.rb:3:in `require': no such file to load -- mail (LoadError)
from testmail.rb:3
Below is the file testmail.rb:
#!/usr/bin/env ruby
require 'mail'
if __FILE__ == $0
Mail.defaults do
retriever_method :pop3, { :address => "mail.blah.com",
:port => 995,
:user_name => '[email protected]',
:password => 'asdfasdf',
:enable_ssl => false }
end
emails = Mail.all
end