Forum: Ruby on Rails Sending mail to a group of users

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
96931bfe0c2948f47a98e15ae52e5637?d=identicon&s=25 Chris Carter (cdcarter)
on 2006-04-06 22:12
I am using acts_as_authenticated and I need to be able to send an email
to all the users in the users model with "t" in the "receive" column.  I
worte the mailer and templates, and sending controller code, but I do
not know how to get the emails into the recipients area.  I setup the
mailer to recieve recipients when the email is created.  I am able to
get all the users to get the mail into a variable (or is it an array?)
called @admins.  I do not know how to get the e-mails from those admins
and stick them into an array called @emails.  What would be the best way
to do this?
This topic is locked and can not be replied to.