Sha256: 3c97f4c61ccae406057ac9a14ea7e63e32b4c17df9fc5e70f5559641ed49e1c2

Contents?: true

Size: 341 Bytes

Versions: 6

Compression:

Stored size: 341 Bytes

Contents

module SpotlightSearch
  class ExportMailer < ActionMailer::Base
    default from: "no-reply@#{Rails.application.config.action_mailer.default_url_options[:host]}"

    def send_excel_file(email, file_path, subject)
      attachments[file_path.split('/').last] = File.read(file_path)
      mail(to: email, subject: subject)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spotlight_search-0.1.9 app/mailers/spotlight_search/export_mailer.rb
spotlight_search-0.1.8 app/mailers/spotlight_search/export_mailer.rb
spotlight_search-0.1.7 app/mailers/spotlight_search/export_mailer.rb
spotlight_search-0.1.6 app/mailers/spotlight_search/export_mailer.rb
spotlight_search-0.1.5 app/mailers/spotlight_search/export_mailer.rb
spotlight_search-0.1.4 app/mailers/spotlight_search/export_mailer.rb