Sha256: 7446567df5f1ac52b4ac74490c9ff285ed6c828334a54ed3956a7da5124e9c3f
Contents?: true
Size: 1.39 KB
Versions: 2
Compression:
Stored size: 1.39 KB
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 def email_crlf email end def email_with_umlauts email end def html_email_with_links email end def text_email_with_links email end def html_email_with_linebreaks email end def html_email_with_specific_line email end def text_email_with_specific_line email 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 def email_crlf email end def html_email_with_links email end def text_email_with_links email end def html_email_with_specific_line email end def text_email_with_specific_line email end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spreewald-3.0.2 | tests/shared/app/models/mailer.rb |
spreewald-2.99.3 | tests/shared/app/models/mailer.rb |