Added pending delete expired email #2786

This commit is contained in:
Priit Tark 2015-07-28 18:07:47 +03:00
parent acb9f2ee08
commit 5883452fa2
6 changed files with 77 additions and 2 deletions

View file

@ -143,4 +143,14 @@ class DomainMailer < ApplicationMailer
subject: "#{I18n.t(:pending_delete_rejected_notification_subject,
name: @domain.name)} [#{@domain.name}]")
end
def pending_delete_expired_notification(domain)
@domain = domain
# no delivery off control, driggered by cron, no epp request
return if whitelist_blocked?(@domain.registrant.email)
mail(to: @domain.registrant.email,
subject: "#{I18n.t(:pending_delete_expired_notification_subject,
name: @domain.name)} [#{@domain.name}]")
end
end