Sha256: 5d4b90144490d943f5e2a7857a4b9cdbba8a736d9ba7a291009bee4ae594b944

Contents?: true

Size: 298 Bytes

Versions: 2

Compression:

Stored size: 298 Bytes

Contents

class MailIt < ActionMailer::Base
  def custom_text_email(from, to, file_location, filename, subject)
    attachments[filename] = File.read(file_location)
    mail :from => from,
         :to => to,
         :subject => subject do |format|
      format.text { render text: 'PFA' }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rake_mailer-1.0.1 app/mailers/mail_it.rb
rake_mailer-1.0.0 app/mailers/mail_it.rb