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.2.6 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.0.15 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.8 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.5 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.4 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.3 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.0.14 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.7 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.2 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.2.0 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.6 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.5 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.4 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.3 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.2 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.1 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.1.0 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.0.13 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.0.12 app/mailers/redhat_access/insights_mailer.rb
redhat_access-2.0.11 app/mailers/redhat_access/insights_mailer.rb