So, you have plenty of users, and you want to notify them of a significant update. You have all recipient emails in you database, and the corresponding ActiveRecord models. Rails also provides the nice ActiveMailer tool. Writing a script using all your existing infrastructure seems the best solution, and it's also how I wanted to send an anoucement to
MyOwnDB subscribers. There are, however, two points that you need to take into account:
- you can't simply loop over all emails, and for each address open a connection to the SMTP server.