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