diff options
Diffstat (limited to 'app/mailers/calendar_mailer.rb')
| -rw-r--r-- | app/mailers/calendar_mailer.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/mailers/calendar_mailer.rb b/app/mailers/calendar_mailer.rb new file mode 100644 index 000000000..f9189371e --- /dev/null +++ b/app/mailers/calendar_mailer.rb @@ -0,0 +1,15 @@ +class CalendarMailer < ApplicationMailer + def updated calendar + users = User.all + users.each do |u| + mail to: u.email, subject: t('mailers.calendar_mailer.updated.subject') + end + end + + def created calendar + users = User.all + users.each do |u| + mail to: u.email, subject: t('mailers.calendar_mailer.created.subject') + end + end +end |
