Class: CustomPasswordsMailer

Inherits:
ApplicationMailer
  • Object
show all
Defined in:
app/mailers/custom_passwords_mailer.rb

Overview

Source: accounts/app/mailers/custom_passwords_mailer.rb

Instance Method Summary collapse

Instance Method Details

#reset_password_confirmationObject



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/mailers/custom_passwords_mailer.rb', line 10

def reset_password_confirmation
  @user = params[:user]

  sender_name = ENV.fetch('MAIL_SENDER_NAME', 'Development Patchwork')

  if @user.present?
    @subject = 'OTP verification code'
    mail(
      to: @user.email,
      subject: @subject
    )
  end
end