class SpreewaldMailer < ApplicationMailer REPLY_TO = "reply-to@example.com" TO = "to@example.com" CC = "cc@example.com" BCC = "bcc@example.com" FROM = "from@example.com" SUBJECT = "SUBJECT" 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 def html_email_for_successful_test_without_header email end def text_email_for_successful_test_without_header email end def html_email_for_failed_test_without_header email end def text_email_for_failed_test_without_header email end end