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.20 app/mailers/wbase/admin_mailer.rb
wbase-0.3.19 app/mailers/wbase/admin_mailer.rb
wbase-0.3.18 app/mailers/wbase/admin_mailer.rb
wbase-0.3.17 app/mailers/wbase/admin_mailer.rb
wbase-0.3.16 app/mailers/wbase/admin_mailer.rb
wbase-0.3.15 app/mailers/wbase/admin_mailer.rb
wbase-0.3.14 app/mailers/wbase/admin_mailer.rb
wbase-0.3.13 app/mailers/wbase/admin_mailer.rb
wbase-0.3.12 app/mailers/wbase/admin_mailer.rb
wbase-0.3.11 app/mailers/wbase/admin_mailer.rb
wbase-0.3.10 app/mailers/wbase/admin_mailer.rb
wbase-0.3.9 app/mailers/wbase/admin_mailer.rb
wbase-0.3.8 app/mailers/wbase/admin_mailer.rb
wbase-0.3.7 app/mailers/wbase/admin_mailer.rb
wbase-0.3.6 app/mailers/wbase/admin_mailer.rb
wbase-0.3.5 app/mailers/wbase/admin_mailer.rb
wbase-0.3.4 app/mailers/wbase/admin_mailer.rb
wbase-0.3.3 app/mailers/wbase/admin_mailer.rb
wbase-0.3.2 app/mailers/wbase/admin_mailer.rb
wbase-0.3.1 app/mailers/wbase/admin_mailer.rb