Class: RakeMailer::MailIt
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- RakeMailer::MailIt
- Defined in:
- lib/rake_mailer/mail_it.rb
Instance Method Summary collapse
Instance Method Details
#custom_text_email(from, to, file_location, filename, subject, display_system_info) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/rake_mailer/mail_it.rb', line 4 def custom_text_email(from, to, file_location, filename, subject, display_system_info) [filename] = File.read(file_location) body = display_system_info ? (body_text rescue "System Info Unsuccessful\n\npfa") : 'pfa' mail :from => from, :to => to, :subject => subject do |format| format.text { render text: body } end end |