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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris C. (Guest)
on 2006-04-07 00: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.