Sha256: 535ee71dfb145bb2ba0c002271eaf1c09cd986d5f3644cb29b0df72afbd891b0

Contents?: true

Size: 441 Bytes

Versions: 37

Compression:

Stored size: 441 Bytes

Contents

module Caboose
  class LoginMailer < CabooseMailer #ActionMailer::Base

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

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

  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
caboose-cms-0.9.211 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.210 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.209 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.208 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.207 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.206 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.205 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.204 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.203 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.202 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.201 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.200 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.198 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.197 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.196 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.195 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.194 app/mailers/caboose/login_mailer.rb