mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Added pending delete expired email #2786
This commit is contained in:
parent
acb9f2ee08
commit
5883452fa2
6 changed files with 77 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue