mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Fix domain expiration mailer email validation
This commit is contained in:
parent
b5cbb33e1c
commit
ab248a641e
7 changed files with 64 additions and 42 deletions
|
@ -632,6 +632,12 @@ class Domain < ApplicationRecord
|
|||
(admin_contacts.emails + [registrant.email]).uniq
|
||||
end
|
||||
|
||||
def expired_domain_contact_emails
|
||||
force_delete_contact_emails.reject do |email|
|
||||
BouncedMailAddress.where(email: email).count.positive?
|
||||
end
|
||||
end
|
||||
|
||||
def force_delete_contact_emails
|
||||
(primary_contact_emails + tech_contacts.pluck(:email) +
|
||||
["info@#{name}", "#{prepared_domain_name}@#{name}"]).uniq
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue