Sha256: eae99460ace8563ed7731fae14fb5a0057ff8f1861bb8ecfcd56036bcb20c8bd

Contents?: true

Size: 740 Bytes

Versions: 49

Compression:

Stored size: 740 Bytes

Contents

module Wbase
  class AdminMailer < ApplicationMailer
    def new_user(user)
      headers "X-SMTPAPI" => {
        unique_args: {
          user_id: user.id,
          mail_eventable_id: user.id,
          mail_eventable_type: 'User'
        }
      }.to_json
      @user = user

      mail(
        to: Wbase.admin_email,
        subject: "New User #{ user.email }"
      )
    end

    def new_subscription(user)
      headers "X-SMTPAPI" => {
        unique_args: {
          user_id: user.id,
          mail_eventable_id: user.id,
          mail_eventable_type: 'User'
        }
      }.to_json
      @user = user

      mail(
        to: Wbase.admin_email,
        subject: "New Subscription #{ user.email }"
      )
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
wbase-0.3.0 app/mailers/wbase/admin_mailer.rb
wbase-0.2.9 app/mailers/wbase/admin_mailer.rb
wbase-0.2.8 app/mailers/wbase/admin_mailer.rb
wbase-0.2.7 app/mailers/wbase/admin_mailer.rb
wbase-0.2.6 app/mailers/wbase/admin_mailer.rb
wbase-0.2.5 app/mailers/wbase/admin_mailer.rb
wbase-0.2.4 app/mailers/wbase/admin_mailer.rb
wbase-0.2.3 app/mailers/wbase/admin_mailer.rb
wbase-0.2.2 app/mailers/wbase/admin_mailer.rb
wbase-0.2.1 app/mailers/wbase/admin_mailer.rb
wbase-0.2.0 app/mailers/wbase/admin_mailer.rb
wbase-0.1.7 app/mailers/wbase/admin_mailer.rb
wbase-0.1.6 app/mailers/wbase/admin_mailer.rb
wbase-0.1.5 app/mailers/wbase/admin_mailer.rb
wbase-0.1.4 app/mailers/wbase/admin_mailer.rb
wbase-0.1.3 app/mailers/wbase/admin_mailer.rb
wbase-0.1.2 app/mailers/wbase/admin_mailer.rb
wbase-0.1.0 app/mailers/wbase/admin_mailer.rb
wbase-0.0.15 app/mailers/wbase/admin_mailer.rb
wbase-0.0.14 app/mailers/wbase/admin_mailer.rb