Sha256: b7a3c1f82417ae3ae9a14e171b21ac1fc3ebf0be836f0774188fe61f792ef990

Contents?: true

Size: 540 Bytes

Versions: 76

Compression:

Stored size: 540 Bytes

Contents

class Mailer < ActionMailer::Base

  REPLY_TO = "reply-to@example.com"
  TO = "to@example.com"
  FROM = "from@example.com"
  SUBJECT = "SUBJECT"
  BODY = "BODY"

  if Rails.version >= "3"

    def email
      mail(
        :from => FROM,
        :reply_to => REPLY_TO,
        :to => TO,
        :subject => SUBJECT
      ) do |format|
        format.text { render :text => BODY }
      end
    end

  else

    def email
      recipients TO
      reply_to REPLY_TO
      from FROM
      subject SUBJECT
      body BODY
    end

  end

end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
spreewald-1.12.6 tests/shared/app/models/mailer.rb
spreewald-1.12.5 tests/shared/app/models/mailer.rb
spreewald-1.12.4 tests/shared/app/models/mailer.rb
spreewald-1.12.3 tests/shared/app/models/mailer.rb
spreewald-1.12.2 tests/shared/app/models/mailer.rb
spreewald-1.12.1 tests/shared/app/models/mailer.rb
spreewald-1.12.0 tests/shared/app/models/mailer.rb
spreewald-1.11.6 tests/shared/app/models/mailer.rb
spreewald-1.11.5 tests/shared/app/models/mailer.rb
spreewald-1.11.4 tests/shared/app/models/mailer.rb
spreewald-1.11.3 tests/shared/app/models/mailer.rb
spreewald-1.11.2 tests/shared/app/models/mailer.rb
spreewald-1.11.1 tests/shared/app/models/mailer.rb
spreewald-1.11.0 tests/shared/app/models/mailer.rb
spreewald-1.10.4 tests/shared/app/models/mailer.rb
spreewald-1.10.3 tests/shared/app/models/mailer.rb
spreewald-1.10.2 tests/shared/app/models/mailer.rb
spreewald-1.10.1 tests/shared/app/models/mailer.rb
spreewald-1.10.0 tests/shared/app/models/mailer.rb
spreewald-1.9.3 tests/shared/app/models/mailer.rb