Sha256: 605c25994bf767cf507d84ea224278f3892a91a83dbd9e02aee33e1b105a1d47

Contents?: true

Size: 689 Bytes

Versions: 55

Compression:

Stored size: 689 Bytes

Contents

module EgovUtils
  class UserMailer < ApplicationMailer

    before_action { @host = params && params[:host] || Rails.application.config.action_mailer.default_url_options[:host] }

    def confirmation_email(user)
      @user = user
      mail(to: user.mail, subject: t(:app_name))
    end

    def account_information(user, password)
      @user = user
      @password = password
      mail(to: user.mail, subject: t(:app_name))
    end

    def password_reset(user, token)
      @user, @token = user, token
      mail(to: user.mail, subject: t(:app_name))
    end

    def password_change_info(user)
      @user = user
      mail(to: user.mail, subject: t(:app_name))
    end

  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
egov_utils-1.5.0.alpha16 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha15 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha14 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha13 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha12 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha11 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha10 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha9 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha8 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha7 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha6 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha5 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha4 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.4.5 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.4.4 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha3 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha2 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.5.0.alpha1 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.4.3 app/mailers/egov_utils/user_mailer.rb
egov_utils-1.4.2 app/mailers/egov_utils/user_mailer.rb