Sha256: 1d903d96fcc894bfef644cd6b106ef945a238c07159cf2030c7b04d0bb8958e8

Contents?: true

Size: 438 Bytes

Versions: 26

Compression:

Stored size: 438 Bytes

Contents

module ClarkKent
  class ReportMailer < ActionMailer::Base
  	default from: 'reservations@invitedhome.com'

  	def report_run(report_id, user_id, report_download_url)
  		@report = Report.find(report_id)
  		@user = User.find(user_id)
  		@recipient_email = @user.email
  		@report_download_url = report_download_url
  		@subject = "Your report #{@report.name} is ready"
  		mail(to: @recipient_email, subject: @subject)
  	end

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clark_kent-0.4.3 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.4.2 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.4.1 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.4.0 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.3.2 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.3.1 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.3.0 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.2.10 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.2.8 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.2.7 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.2.6 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.2.5 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.2.4 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.2.3 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.2.2 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.2.1 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.2.0 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.1.7 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.1.6 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.1.5 app/mailers/clark_kent/report_mailer.rb