update mail templates

This commit is contained in:
olegphenomenon 2022-01-12 12:24:44 +02:00
parent 35f60e53e5
commit 09ba0a2511
10 changed files with 171 additions and 15 deletions

View file

@ -1,11 +1,20 @@
class ContactInformMailer < ApplicationMailer
helper_method :address_processing
def notify(contact:, domain:, subject:)
def notify_dnssec(contact:, domain:)
@contact = contact
@subject = subject
@domain = domain
subject = "Domeeni #{@domain.name} DNSSEC kirjed ei ole korrektsed / The DNSKEY records of the domain #{@domain.name} are invalid"
mail(to: contact.email, subject: subject)
end
def notify_nameserver(contact:, domain:)
@contact = contact
@domain = domain
subject = "Domeeni #{@domain.name} nimeserveri kirjed ei ole korrektsed / The host records of the domain #{@domain.name} are invalid"
mail(to: contact.email, subject: subject)
end