Sha256: e58c9ca60b577292c1c52d9ab7532f754646ab677573c512f03ceb19ae94c1f8

Contents?: true

Size: 702 Bytes

Versions: 11

Compression:

Stored size: 702 Bytes

Contents

module Alchemy
  class Notifications < ActionMailer::Base

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

    def registered_user_created(user)
      @user = user
      @url = login_url
      mail(
        :to => user.email,
        :subject => Alchemy::I18n.t("alchemy.mailer.new_user_mail.subject")
      )
    end

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

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

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy_cms-2.6.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.6.0 app/mailers/alchemy/notifications.rb
alchemy_cms-2.6.0.rc5 app/mailers/alchemy/notifications.rb
alchemy_cms-2.5.3.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.5.3 app/mailers/alchemy/notifications.rb
alchemy_cms-2.5.2.2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.5.2.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.5.2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.5.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.5.0 app/mailers/alchemy/notifications.rb
alchemy_cms-2.5.0.rc3 app/mailers/alchemy/notifications.rb