identity-vault/app/mailers/identity_backup_code_mailer.rb
nora 87bb6d4a18
Switch mailers to SES (#72)
* add premailer

* first pass at converting existing mailers

* this EIN is not yours :-P

* remove some css that probably won't work

* that was gonna bug me

* more mailers!

* s/account/auth

* rework 2fa/security mailers

* env vars for SES creds

* add OpenSSL explicitly

* use external logo image

* nuke step_up_code
2025-12-04 16:32:32 -05:00

25 lines
560 B
Ruby

class IdentityBackupCodeMailer < ApplicationMailer
def code_used(identity)
@identity = identity
@first_name = identity.first_name
@env_prefix = env_prefix
mail(
to: identity.primary_email,
from: ACCOUNT_FROM,
subject: prefixed_subject(t(".subject"))
)
end
def codes_regenerated(identity)
@identity = identity
@first_name = identity.first_name
@env_prefix = env_prefix
mail(
to: identity.primary_email,
from: ACCOUNT_FROM,
subject: prefixed_subject(t(".subject"))
)
end
end