mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
docs: note that mail() accepts arbitrary headers
The documentation makes it sound like mail() only accepts a limited set of headers in the headers hash, but it in fact accepts any arbitrary headers, and there is a test ("can pass random headers in as a hash to mail") for it in the test suite. Signed-off-by: Wincent Colaiuta <win@wincent.com>
This commit is contained in:
parent
8fbb5177a7
commit
52c56f9f7e
1 changed files with 3 additions and 1 deletions
|
@ -535,7 +535,9 @@ module ActionMailer #:nodoc:
|
|||
# :reply_to => 'bounces@test.lindsaar.net'
|
||||
# end
|
||||
#
|
||||
# If you need other headers not listed above, use the <tt>headers['name'] = value</tt> method.
|
||||
# If you need other headers not listed above, you can either pass them in
|
||||
# as part of the headers hash or use the <tt>headers['name'] = value</tt>
|
||||
# method.
|
||||
#
|
||||
# When a <tt>:return_path</tt> is specified as header, that value will be used as the 'envelope from'
|
||||
# address for the Mail message. Setting this is useful when you want delivery notifications
|
||||
|
|
Loading…
Reference in a new issue