diff options
author | Aditya Sanghi <aditya.sanghi@risingsuntech.net> | 2012-09-07 01:47:27 +0530 |
---|---|---|
committer | Aditya Sanghi <aditya.sanghi@risingsuntech.net> | 2012-09-07 01:47:27 +0530 |
commit | d016decb47b3bc1a9ab7f4e2f82cf54de1f23965 (patch) | |
tree | 8bfdf74dc15336fa8322d1b30db86372ce94f85d /guides | |
parent | 150c6dc30f20f46c90c289704150268b7fb9edd9 (diff) | |
download | rails-d016decb47b3bc1a9ab7f4e2f82cf54de1f23965.tar.gz rails-d016decb47b3bc1a9ab7f4e2f82cf54de1f23965.tar.bz2 rails-d016decb47b3bc1a9ab7f4e2f82cf54de1f23965.zip |
Dynamic Delivery Method Options
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/4_0_release_notes.textile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/guides/source/4_0_release_notes.textile b/guides/source/4_0_release_notes.textile index 0e03779e0d..fc922b04b7 100644 --- a/guides/source/4_0_release_notes.textile +++ b/guides/source/4_0_release_notes.textile @@ -116,6 +116,20 @@ h3. Action Mailer * Asynchronously send messages via the Rails Queue. +* Delivery Options (such as SMTP Settings) can now be set dynamically per mailer action. + +Delivery options are set via <tt>:delivery_method_options</tt> key on mail. + +<ruby> +def welcome_mailer(user,company) + mail to: user.email, + subject: "Welcome!", + delivery_method_options: {user_name: company.smtp_user, + password: company.smtp_password, + address: company.smtp_server} +end +</ruby> + h3. Action Pack h4. Action Controller |