diff options
Diffstat (limited to 'actionmailer/CHANGELOG.md')
-rw-r--r-- | actionmailer/CHANGELOG.md | 16 |
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* |