diff options
author | Raul Murciano <raul@murciano.net> | 2011-08-14 10:13:23 -0700 |
---|---|---|
committer | Raul Murciano <raul@murciano.net> | 2011-08-14 10:19:13 -0700 |
commit | 169a50930f330f94c189b5fcd665a3d209ccbcfa (patch) | |
tree | 05b057bea43ca6d5edc5dc860a42a1bf2ac9aa5a /railties | |
parent | ac4dc5e240242ed53885e4cac7b48dd93773a329 (diff) | |
download | rails-169a50930f330f94c189b5fcd665a3d209ccbcfa.tar.gz rails-169a50930f330f94c189b5fcd665a3d209ccbcfa.tar.bz2 rails-169a50930f330f94c189b5fcd665a3d209ccbcfa.zip |
Action Mailer guide update: the :to parameter now supports both String and Array values to indicate recipients.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/action_mailer_basics.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/action_mailer_basics.textile b/railties/guides/source/action_mailer_basics.textile index 5b2212d9cb..4bf9161425 100644 --- a/railties/guides/source/action_mailer_basics.textile +++ b/railties/guides/source/action_mailer_basics.textile @@ -242,11 +242,11 @@ end h5. Sending Email To Multiple Recipients -It is possible to send email to one or more recipients in one email (for e.g. informing all admins of a new signup) by setting the list of emails to the <tt>:to</tt> key. The <tt>to:</tt> key however expects a string so you have join the list of recipients using a comma. +It is possible to send email to one or more recipients in one email (for e.g. informing all admins of a new signup) by setting the list of emails to the <tt>:to</tt> key. The list of emails can be an array of email addresses or a single string with the addresses separated with commas. <ruby> class AdminMailer < ActionMailer::Base - default :to => Admin.all.map(&:email).join(", "), + default :to => Admin.all.map(&:email), :from => "notification@example.com" def new_registration(user) |