Sha256: d914dc3f9d0db00ed0ecc48fd681fb6826c40d2ca83befcc0b8fe718c8d5d584
Contents?: true
Size: 814 Bytes
Versions: 2
Compression:
Stored size: 814 Bytes
Contents
class TestMailer < ActionMailer::Base default :subject => 'hello', :to => 'sheldon@bigbangtheory.com', :from => 'leonard@bigbangtheory.com' def simple_message mail end def tagged_message mail(:tag => 'delivery') end def multipart_message mail(:subject => "Your invitation to join Mixlr.") do |format| format.text format.html end end def message_with_attachment attachments['empty.gif'] = File.read(image_file) mail(:subject => "Message with attachment.") end def message_with_inline_image attachments.inline['empty.gif'] = File.read(image_file) mail(:subject => "Message with inline image.") end protected def image_file File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'empty.gif') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
postmark-rails-0.7.0 | spec/fixtures/models/test_mailer.rb |
postmark-rails-0.6.0 | spec/fixtures/models/test_mailer.rb |