Sha256: 110d9e78fa18ecb0928abcf54efb8bb29cd023d112a4dfbf5853968c4de27cad
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
class TestMailer < ActionMailer::Base default from: 'barney@himym.tld', to: 'ted@himym.tld' def text %{Think of me like Yoda, but instead of being little and green I wear suits and I'm awesome. I'm your bro-I'm Broda!} end def email mail subject: %{I'm your bro!} do |as| as.text { render text: text } end end def email_with_tags mail subject: %{I'm your bro!}, tag: 'simple-postmark' do |as| as.text { render text: text } end end def email_with_attachments attachments['thebrocode.jpg'] = BROCODE mail subject: %{The Brocode!} do |as| as.text { render text: text } end end def email_with_reply_to mail subject: %{I'm your bro!}, reply_to: 'barney@barneystinsonblog.com' do |as| as.text { render text: text } end end def email_with_multipart mail subject: %{I'm your bro!} do |as| as.text { render text: %{Think of me like Yoda, but instead of being little and green I wear suits and I'm awesome. I'm your bro-I'm Broda!} } as.html { render text: %{<p>Think of me like Yoda, but instead of being little and green I wear suits and I'm awesome.<br /><br />I'm your bro-I'm Broda!</p>} } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_postmark-0.7.0 | test/test_mailer.rb |