Sha256: 24b623c453f96828654b4651f28c7c891b6365f8721c4feeaf29e1b052ef577d

Contents?: true

Size: 534 Bytes

Versions: 13

Compression:

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

13 entries across 13 versions & 1 rubygems

Version Path
alchemy_cms-2.5.0.b9 app/mailers/alchemy/notifications.rb
alchemy_cms-2.3.2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.4.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.5.0.b5 app/mailers/alchemy/notifications.rb
alchemy_cms-2.5.0.b2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.4.0 app/mailers/alchemy/notifications.rb
alchemy_cms-2.4.rc4 app/mailers/alchemy/notifications.rb
alchemy_cms-2.4.rc2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.4.rc1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.3.1 app/mailers/alchemy/notifications.rb
alchemy_cms-2.4.beta2 app/mailers/alchemy/notifications.rb
alchemy_cms-2.3.0 app/mailers/alchemy/notifications.rb
alchemy_cms-2.3.rc5 app/mailers/alchemy/notifications.rb