box-o-sand/oldstuff/RubyFun/cookbook/014/05-headerful-message.rb

14 lines
231 B
Ruby

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