mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
added mail contronller and job for notificate registrars and admins about accreditation expire date
This commit is contained in:
parent
c5719a35f1
commit
e74cf2bc7f
7 changed files with 78 additions and 4 deletions
21
app/mailers/accreditation_center_mailer.rb
Normal file
21
app/mailers/accreditation_center_mailer.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue