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