added mail contronller and job for notificate registrars and admins about accreditation expire date

This commit is contained in:
olegphenomenon 2021-11-11 12:31:53 +02:00
parent c5719a35f1
commit e74cf2bc7f
7 changed files with 78 additions and 4 deletions

View file

@ -0,0 +1,21 @@
class AccreditationCenterMailer < ApplicationMailer
def test_was_successfully_passed_admin(email)
subject = 'Test passed admin'
mail(to: email, subject: subject)
end
def test_was_successfully_passed_registrar(email)
subject = 'Test passed registrar'
mail(to: email, subject: subject)
end
def test_results_will_expired_in_one_month(email)
subject = 'Test will expired in one month'
mail(to: email, subject: subject)
end
def test_results_are_expired(email)
subject = 'Test are expired'
mail(to: email, subject: subject)
end
end