1 class AdminNotifier < ActionMailer::Base
2 default from: Rails.configuration.admin_notifier_email_from
6 if not Rails.configuration.new_user_notification_recipients.empty? then
7 @recipients = Rails.configuration.new_user_notification_recipients
8 logger.info "Sending mail to #{@recipients} about new user #{@user.uuid} (#{@user.full_name} <#{@user.email}>)"
10 subject: "#{Rails.configuration.email_subject_prefix}New user notification"
15 def new_inactive_user(user)
17 if not Rails.configuration.new_inactive_user_notification_recipients.empty? then
18 @recipients = Rails.configuration.new_inactive_user_notification_recipients
19 logger.info "Sending mail to #{@recipients} about new user #{@user.uuid} (#{@user.full_name} <#{@user.email}>)"
21 subject: "#{Rails.configuration.email_subject_prefix}New inactive user notification"