From 52c56f9f7ec46ee39f1a6319ff4017e2492683ed Mon Sep 17 00:00:00 2001 From: Wincent Colaiuta Date: Tue, 29 Jun 2010 19:09:10 +0200 Subject: 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 --- actionmailer/lib/action_mailer/base.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actionmailer/lib/action_mailer') diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index 3b6e2c6387..11fa978b9c 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -535,7 +535,9 @@ module ActionMailer #:nodoc: # :reply_to => 'bounces@test.lindsaar.net' # end # - # If you need other headers not listed above, use the headers['name'] = value method. + # If you need other headers not listed above, you can either pass them in + # as part of the headers hash or use the headers['name'] = value + # method. # # When a :return_path 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 -- cgit v1.2.3