Sha256: b244788d4c296a7e046180355fac8b86c8bf1a94a0ee9fdf520c7b65b4613f4d
Contents?: true
Size: 797 Bytes
Versions: 2
Compression:
Stored size: 797 Bytes
Contents
class Mailer < ActionMailer::Base REPLY_TO = "reply-to@example.com" TO = "to@example.com" CC = "cc@example.com" BCC = "bcc@example.com" FROM = "from@example.com" SUBJECT = "SUBJECT" if Rails.version >= "3" def email attachments['attached_file.pdf'] = File.open("#{Rails.root}/public/fixture_files/attachment.pdf", "w") {} mail( :from => FROM, :reply_to => REPLY_TO, :to => TO, :cc => CC, :bcc => BCC, :subject => SUBJECT ) end else def email attachments['attached_file.pdf'] = File.open("#{Rails.root}/public/fixture_files/attachment.pdf", "w") {} recipients TO reply_to REPLY_TO from FROM cc CC bcc BCC subject SUBJECT body BODY end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spreewald-2.3.0 | tests/shared/app/models/mailer.rb |
spreewald-2.2.4 | tests/shared/app/models/mailer.rb |