I have a list of various “events” that emails should be sent out on.
Example: user registers with site, or a user takes a test.
And I want the admin user to be able to configure what email addresses
should receieve the emails that get sent out on the events. Example:
[email protected] and [email protected] get an email when a user registers, and
[email protected] gets an email when a user takes a test.
Any advice? My initial approach would be to create a table called
email_addresses (comma-deliminated list of addresses)
And then, when a user registers, it looks up the ‘User_Registration’
key in email_events and sends emails out to all the email addresses.
I haven’t done much work with email handling in Rails, so I don’t know
if there’s a better way to integrate this with ActionMailer.