Hi Marlon > require 'ruport' > require 'ruport/util' > > r = Ruport::Report.new > r.add_mailer :default, > :host => "mail.host.com", > :address => "addr...@host.com" > > r.send_to("t...@host.com") do |mail| > mail.subject = "Test Report" > mail.attach "test_file.txt" > mail.text = "This is an email with attached txt" > end
Try like recipients = ["t...@host.com","t...@host.com",....] recipients.each do |recipient| r.send_to(recipient) do |mail| mail.subject = "Test Report" mail.attach "test_file.txt" mail.text = "This is an email with attached txt" end end Sijo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---