>    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

So, I'm guessing that something like the following could also be done:

Mailinglist.find(:all).each do |ml_record|
r.send_to(ml_record.address)
blah blah

Would this be the appropriate way to handle a mailing list?  Is there
some other way I should consider?  If we get a few thousand addresses
returned, is that going to be a problem?  Thanks.

       ... doug
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to