headerful message variant

This commit is contained in:
Dan Buch 2011-08-08 07:16:08 -04:00
parent 4bad1c5bdd
commit 48c4f83e3f

View File

@ -0,0 +1,13 @@
require 'rubygems'
require 'action_mailer'
class SimpleMailer < ActionMailer::Base
def headerful_message
@headers['X-custom-header'] = 'Its value'
body 'Body'
end
end
puts SimpleMailer.headerful_message