I have this script but currently it only send email to one recipient.
Someone knows how to send email to multiple recipients? Please help.
require 'ruport'
require 'ruport/util'
r = Ruport::Report.new
r.add_mailer :default,
:host => "mail.host.com",
:address => "[email protected]"
r.send_to("[email protected]") do |mail|
mail.subject = "Test Report"
mail.attach "test_file.txt"
mail.text = "This is an email with attached txt"
end
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---