Loga Ganesan wrote:
> 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

Yep. Thats it.

Sorry 4 not beeing online.

by
TheR
-- 
Posted via http://www.ruby-forum.com/.