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.1.4 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.1.3 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.1.2 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.1.1 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.1.0 app/mailers/clark_kent/report_mailer.rb
clark_kent-0.0.1 app/mailers/clark_kent/report_mailer.rb