Sha256: 287ec17310f68f99ab4850a97523b1d4e4836d21dd5ae1d3e84f982ae6c52198
Contents?: true
Size: 986 Bytes
Versions: 7
Compression:
Stored size: 986 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 tracked_message mail(:track_opens => "true") 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 def message_with_metadata metadata['foo'] = 'bar' mail(:subject => 'Message with metadata.') end protected def image_file File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'empty.gif') end end
Version data entries
7 entries across 7 versions & 1 rubygems