Adding bulk email functionality
This commit is contained in:
parent
401ed3ddf4
commit
eca5238abd
5 changed files with 141 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue