headerful message variant
This commit is contained in:
parent
4bad1c5bdd
commit
48c4f83e3f
13
cookbook/014/05-headerful-message.rb
Normal file
13
cookbook/014/05-headerful-message.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user