Class: Caboose::LoginMailer

Inherits:
CabooseMailer show all
Defined in:
app/mailers/caboose/login_mailer.rb

Overview

ActionMailer::Base

Instance Method Summary collapse

Instance Method Details

#forgot_password_email(user) ⇒ Object


4
5
6
7
# File 'app/mailers/caboose/login_mailer.rb', line 4

def forgot_password_email(user)
  @user = user
  mail(:to => user.email, :subject => "#{user.site.description} Forgot Password")
end

#locked_account(user) ⇒ Object


9
10
11
12
13
# File 'app/mailers/caboose/login_mailer.rb', line 9

def (user)
  @user = user
  admin_email = user.site.contact_email
  mail(:to => admin_email, :subject => "#{user.site.description} Locked Account") if !admin_email.blank?
end