Sha256: 047cd0e064194072e1faac9d103180f860201454f08351ff208d1845b01cab85
Contents?: true
Size: 876 Bytes
Versions: 9
Compression:
Stored size: 876 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 protected def image_file File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'empty.gif') end end
Version data entries
9 entries across 9 versions & 1 rubygems