Sha256: dfeb985fb99230c4724794430b58f655ddb1f662c2302bc9c5708561b339e4af

Contents?: true

Size: 689 Bytes

Versions: 16

Compression:

Stored size: 689 Bytes

Contents

class UserMailer < ActionMailer::Base
  
  if defined?(SETTINGS) && SETTINGS['site_admin_email'] 
    default :from => SETTINGS['site_admin_email']
  else
    default :from => 'test@example.com'
  end

  # Subject can be set in your I18n file at config/locales/en.yml
  # with the following lookup:
  #
  #   en.user_mailer.password_reset.subject
  #
  def password_reset(user)  
    @user = user
    if defined?(SETTINGS) && SETTINGS['site_name']
      mail :to => user.email, :subject => t('authentication.password_reset_email_subject') + ' | ' + SETTINGS['site_name']
    else
      mail :to => user.email, :subject => t('authentication.password_reset_email_subject')
    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
tkh_authentication-0.1.3 app/mailers/user_mailer.rb
tkh_authentication-0.1.2 app/mailers/user_mailer.rb
tkh_authentication-0.1.1 app/mailers/user_mailer.rb
tkh_authentication-0.1 app/mailers/user_mailer.rb
tkh_authentication-0.0.12 app/mailers/user_mailer.rb
tkh_authentication-0.0.11 app/mailers/user_mailer.rb
tkh_authentication-0.0.10 app/mailers/user_mailer.rb
tkh_authentication-0.0.9 app/mailers/user_mailer.rb
tkh_authentication-0.0.8 app/mailers/user_mailer.rb
tkh_authentication-0.0.7 app/mailers/user_mailer.rb
tkh_authentication-0.0.6 app/mailers/user_mailer.rb
tkh_authentication-0.0.5 app/mailers/user_mailer.rb
tkh_authentication-0.0.4 app/mailers/user_mailer.rb
tkh_authentication-0.0.3 app/mailers/user_mailer.rb
tkh_authentication-0.0.2 app/mailers/user_mailer.rb
tkh_authentication-0.0.1 app/mailers/user_mailer.rb