From: Loga Ganesan Date: 2009-03-25T15:56:17+09:00 Subject: Re: send email in ruby Mohit Sindhwani wrote: > Loga Ganesan wrote: >>>>> I have installed ruport. >>>>> >>>> Awaiting reply................ >>>> >>> Awaiting reply................ >>> >> >> Hi >> Expecting Reply ......... >> > Obviously, this is not working out for you. I haven't seen your > original code but it seems like your need to require ruport. > > Cheers, > Mohit. > 3/25/2009 | 2:45 PM. This is the code that I worked out: #! /usr/bin/ruby require '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 -- Posted via http://www.ruby-forum.com/.