mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
377 B
14 lines
377 B
# frozen_string_literal: true
|
|
|
|
class TemplateMailer < ApplicationMailer
|
|
def otp_verification_email(template, email:)
|
|
@template = template
|
|
|
|
@otp_code = EmailVerificationCodes.generate([email.downcase.strip, template.slug].join(':'))
|
|
|
|
assign_message_metadata('otp_verification_email', template)
|
|
|
|
mail(to: email, subject: I18n.t('email_verification'))
|
|
end
|
|
end
|