From: Loga Ganesan Date: 2009-03-23T22:15:59+09:00 Subject: Re: send email in ruby Damjan Rems wrote: > 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 Hi In the above code, what are the libraries I need to use in require. It says me the following error: uninitialized constant Ruport::Report (NameError) I have installed ruport. -- Posted via http://www.ruby-forum.com/.