Adding bulk email functionality

This commit is contained in:
Linus Gasser 2025-10-10 17:16:25 +02:00
parent 401ed3ddf4
commit eca5238abd
5 changed files with 141 additions and 1 deletions

View file

@ -137,4 +137,11 @@ class Mailbot < ActionMailer::Base
template_name: 'comment_template',
subject: "New comment has been posted for #{@event.title}")
end
def bulk_mail(conference, user, subject, body)
mail(to: user.email,
from: conference.contact.email,
subject: subject,
body: EmailSettings.new.generate_email_on_conf_updates(conference, user, body))
end
end