mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
18 lines
584 B
Ruby
18 lines
584 B
Ruby
class DeleteDomainMailer < ApplicationMailer
|
|
include Que::Mailer
|
|
|
|
def pending(domain:, old_registrant:)
|
|
@domain = DomainPresenter.new(domain: domain, view: view_context)
|
|
@registrar = RegistrarPresenter.new(registrar: domain.registrar, view: view_context)
|
|
@verification_url = verification_url(domain)
|
|
|
|
subject = default_i18n_subject(domain_name: domain.name)
|
|
mail(to: old_registrant.email, subject: subject)
|
|
end
|
|
|
|
private
|
|
|
|
def verification_url(domain)
|
|
registrant_domain_delete_confirm_url(domain, token: domain.registrant_verification_token)
|
|
end
|
|
end
|