Class: Dscf::Credit::BankStaffWelcomeMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/dscf/credit/bank_staff_welcome_mailer.rb

Instance Method Summary collapse

Instance Method Details

#welcome_email(user, generated_password, bank_staff = nil) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'app/mailers/dscf/credit/bank_staff_welcome_mailer.rb', line 3

def welcome_email(user, generated_password, bank_staff = nil)
  @user = user
  @generated_password = generated_password
  @bank_staff = bank_staff
  @login_url = ENV["FRONTEND_BASE_URL"] || "http://localhost:3000"

  mail(
    to: user.email,
    subject: "Welcome to DSCF Banking System - Your Account Details"
  )
end