Sha256: 8c2095df6547c4a68c248ca2f48fded757e63a0143aa85c4d2f8cd4fd288480f

Contents?: true

Size: 533 Bytes

Versions: 16

Compression:

Stored size: 533 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

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-2.2.4 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.3.2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.3.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.0 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.rc15 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.rc14 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.rc13 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.rc11 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.rc8 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.rc7 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.rc6 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.rc3 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.rc2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.2.rc1 app/mailers/alchemy/notifications.rb