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.229 app/mailers/caboose/login_mailer.rb
caboose-cms-1.0.2 app/mailers/caboose/login_mailer.rb
caboose-cms-1.0.1 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.228 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.227 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.226 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.225 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.224 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.223 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.222 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.221 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.220 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.219 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.218 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.217 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.216 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.215 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.214 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.213 app/mailers/caboose/login_mailer.rb
caboose-cms-0.9.212 app/mailers/caboose/login_mailer.rb