aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-01-27 08:05:13 +0100
committerYves Senn <yves.senn@gmail.com>2014-01-27 08:06:26 +0100
commit5540dfccd88c809c2922f21f4c1558465bce26dd (patch)
tree5103a9462502658ae9d030b662673a1ee5cef98f /guides/source/configuring.md
parent16ee18eebc4c81d284597ec11608c4822c23da2d (diff)
downloadrails-5540dfccd88c809c2922f21f4c1558465bce26dd.tar.gz
rails-5540dfccd88c809c2922f21f4c1558465bce26dd.tar.bz2
rails-5540dfccd88c809c2922f21f4c1558465bce26dd.zip
docs, clarify usage of `action_mailer.default_options`. [ci skip]. Closes #13820.
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md16
1 files changed, 12 insertions, 4 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 693991304b..387778316a 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -413,10 +413,18 @@ There are a number of settings available on `config.action_mailer`:
* `config.action_mailer.default_options` configures Action Mailer defaults. Use to set options like `from` or `reply_to` for every mailer. These default to:
```ruby
- :mime_version => "1.0",
- :charset => "UTF-8",
- :content_type => "text/plain",
- :parts_order => [ "text/plain", "text/enriched", "text/html" ]
+ mime_version: "1.0",
+ charset: "UTF-8",
+ content_type: "text/plain",
+ parts_order: ["text/plain", "text/enriched", "text/html"]
+ ```
+
+ Assign a hash to set additional options:
+
+ ```ruby
+ config.action_mailer.default_options = {
+ from: "noreply@example.com"
+ }
```
* `config.action_mailer.observers` registers observers which will be notified when mail is delivered.