Sha256: 47fe503650213065a6798329d268acad2b8df0e03a288b052ea0bd74f85474c6

Contents?: true

Size: 475 Bytes

Versions: 15

Compression:

Stored size: 475 Bytes

Contents


class TestMailQueueMailer < ActionMailer::QueueMailer 
  
  def notify(sent_at = Time.now) 
    @subject = 'TestMailerClass#notify' 
    @recipients = ['nate@mailinator.com'] 
    @from = 'from@mailinator.com' 
    @sent_on = sent_at 
    @headers = {} 
    @body = {} 
    
    Net::HTTP.start("www.google.com") { |http|
      resp = http.get("/intl/en_ALL/images/logo.gif")
      attachment :content_type => "image/gif",
              :body => resp.body
    }
  end 
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
spree-0.11.4 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.11.3 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.11.2 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.11.1 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.11.0 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.10.2 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.10.1 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.10.0 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.10.0.beta vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-enriquez-0.9.4 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.9.4 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.9.3 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.9.2 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.9.1 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb
spree-0.9.0 vendor/plugins/mail_queue/lib/test_mail_queue_mailer.rb