I did it with Ruport:
r = Ruport::Report.new
r.add_mailer :default,
:host => "mymail.server.com",
:address => "address / server.com"
r.send_to('sendto / somemail.com') do |mail|
mail.subject = "Some subject"
mail.attach('myfile.name')
mail.text = "Some text"
end
by
TheR
--
Posted via http://www.ruby-forum.com/.