Sha256: 318bdf18bece606891a67c7ef953e54cbe32926df2320f196c73fe50368c756e

Contents?: true

Size: 592 Bytes

Versions: 50

Compression:

Stored size: 592 Bytes

Contents

module RedhatAccess
  class InsightsMailer < ApplicationMailer

    def create(user, body, subject, content_type="text/html")
      mail(to: user.mail,
           body: body,
           content_type: content_type,
           subject: subject)
    end

    def weekly_email(user, data, subject, org)
      @user = user
      @data = data
      @org  = org
      @server_url = "#{Setting[:foreman_url]}/redhat_access/insights"
      @email_settings_url = "#{Setting[:foreman_url]}/users/#{user.id}/edit#mail_preferences"
      mail(to: user.mail,
           subject: subject)

    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
redhat_access-2.9.1 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.8.1 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.20 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.19 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.18 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.17 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.16 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.15 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.14 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.13 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.12 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.11 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.10 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.9 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.8 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.7 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.10 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.0.17 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.0.16 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.9 app/mailers/redhat_access/insights_mailer.rb