aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/CHANGELOG.md
diff options
context:
space:
mode:
authorAditya Sanghi <aditya.sanghi@risingsuntech.net>2012-08-20 18:52:12 +0530
committerAditya Sanghi <aditya.sanghi@risingsuntech.net>2012-09-04 22:34:41 +0530
commit8fc8763fde2cc685ed63fcf640cfae556252809b (patch)
tree4b76a5b82cbd657953bc4e2444a390c311a6601e /actionmailer/CHANGELOG.md
parent27acd1e0d29c43dddd9c62b041a16c6e71e7bcf4 (diff)
downloadrails-8fc8763fde2cc685ed63fcf640cfae556252809b.tar.gz
rails-8fc8763fde2cc685ed63fcf640cfae556252809b.tar.bz2
rails-8fc8763fde2cc685ed63fcf640cfae556252809b.zip
Allow delivery method options to be set per mail instance
Diffstat (limited to 'actionmailer/CHANGELOG.md')
-rw-r--r--actionmailer/CHANGELOG.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md
index c33a24c1ba..45ff9eab1a 100644
--- a/actionmailer/CHANGELOG.md
+++ b/actionmailer/CHANGELOG.md
@@ -1,5 +1,21 @@
## Rails 4.0.0 (unreleased) ##
+* Allow delivery method options to be set per mail instance *Aditya Sanghi*
+
+ If your smtp delivery settings are dynamic,
+ you can now override settings per mail instance for e.g.
+
+ def my_mailer(user,company)
+ mail to: customer.email, subject: "Welcome!",
+ delivery_method_options: {user_name: company.smtp_user,
+ password: company.smtp_password}
+ end
+
+ This will ensure that your default SMTP settings will be overridden
+ by the company specific ones. You only have to override the settings
+ that are dynamic and leave the static setting in your environment
+ configuration file (e.g. config/environments/production.rb)
+
* Allow to set default Action Mailer options via `config.action_mailer.default_options=` *Robert Pankowecki*
* Raise an `ActionView::MissingTemplate` exception when no implicit template could be found. *Damien Mathieu*