Sha256: 454f4160cf019f3b88d66dd43e65bf15fe8f8fc29b804a89f083156987151df7

Contents?: true

Size: 656 Bytes

Versions: 12

Compression:

Stored size: 656 Bytes

Contents

module Alchemy
  class Notifications < ActionMailer::Base

    default(from: Config.get(:mailer)['mail_from'])

    def registered_user_created(user)
      @user = user
      @url = login_url
      mail(
        to: user.email,
        subject: I18n.t("Your user credentials")
      )
    end

    def admin_user_created(user)
      @user = user
      @url = admin_url
      mail(
        to: user.email,
        subject: I18n.t("Your Alchemy Login")
      )
    end

    def reset_password_instructions(user, opts={})
      @user = user
      mail(
        to: user.email,
        subject: I18n.t("Reset password instructions")
      )
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-2.8.3 app/mailers/alchemy/notifications.rb
alchemy_cms-2.7.5 app/mailers/alchemy/notifications.rb
alchemy_cms-2.6.3 app/mailers/alchemy/notifications.rb
alchemy_cms-2.7.4 app/mailers/alchemy/notifications.rb
alchemy_cms-2.8.2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.8.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.7.3 app/mailers/alchemy/notifications.rb
alchemy_cms-2.7.2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.7.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.7.0 app/mailers/alchemy/notifications.rb
alchemy_cms-2.6.2.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.6.2 app/mailers/alchemy/notifications.rb