Sha256: b88ee31b718bc873a15fde872b7f569da3cb32a6db11df4b5ce0a5d8f7fa57fa

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 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"

  def email
    attachments['attached_file.pdf'] = File.open("#{Rails.root}/public/fixture_files/attachment.pdf") {}
    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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spreewald-4.6.3 tests/shared/app/models/mailer.rb