Sha256: 76c60332277b67d30ba4239a3796fcbbd0f7f1a0ab9526d27455656ddf11854c

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

ActionMailer::Base.view_paths = File.expand_path('../../views/', __FILE__)

class ReportMailer < ActionMailer::Base
  def daily(to)

    @title = Reparty::Email.title

    @reports = Reparty::Email.reports
    @reports.each {|r| r.attach(attachments)}
    attachments.inline['spacer.gif'] = File.read(Reparty.root + 'app/assets/images/spacer.gif')

    mail(
        from: Reparty::Email.from,
        to: to,
        subject: Reparty::Email.subject
    )
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reparty-0.3.2 app/mailers/report_mailer.rb
reparty-0.3.1 app/mailers/report_mailer.rb
reparty-0.2.1 app/mailers/report_mailer.rb
reparty-0.2.0 app/mailers/report_mailer.rb
reparty-0.1.3 app/mailers/report_mailer.rb