From: Damjan Rems Date: 2009-03-23T18:18:52+09:00 Subject: Re: send email in ruby Scott Lillibridge wrote: > I would suggest looking at the MailFactory gem ( > http://rubyforge.org/projects/mailfactory/). It has a simple way to > construct the mail message, with attachments, that you can then send > using > net/smtp. You can also try with Ruport: r = Ruport::Report.new r.add_mailer :default, :host => "my.smtp.host", :address => "my@adress" r.send_to('send.to@mail') do |mail| mail.subject = "Subject" Dir["*.tif"].each { | cName | mail.attach(cName) } mail.text = "Body text" end Works for me. by TheR -- Posted via http://www.ruby-forum.com/.