mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Add extended registrar's info to "pending_update_request_for_old_registrant" mailer
#180
This commit is contained in:
parent
34c1e0d323
commit
fc9104a232
11 changed files with 239 additions and 32 deletions
|
@ -1,8 +1,14 @@
|
|||
class DomainMailer < ApplicationMailer
|
||||
include Que::Mailer
|
||||
|
||||
def pending_update_request_for_old_registrant(params)
|
||||
compose_from(params)
|
||||
def pending_update_request_for_old_registrant(domain:, registrant:)
|
||||
@domain = DomainPresenter.new(domain: domain, view: view_context)
|
||||
@registrar = RegistrarPresenter.new(registrar: domain.registrar, view: view_context)
|
||||
@registrant = RegistrantPresenter.new(registrant: registrant, view: view_context)
|
||||
@verification_url = registrant_domain_update_confirm_url(domain, token: domain.registrant_verification_token)
|
||||
|
||||
subject = default_i18n_subject(domain_name: domain.name)
|
||||
mail(to: registrant.email, subject: subject)
|
||||
end
|
||||
|
||||
def pending_update_notification_for_new_registrant(params)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue