Skip to content

Commit 5540dfc

Browse files
committed
docs, clarify usage of action_mailer.default_options. [ci skip]. Closes rails#13820.
1 parent 16ee18e commit 5540dfc

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

guides/source/configuring.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,18 @@ There are a number of settings available on `config.action_mailer`:
413413
* `config.action_mailer.default_options` configures Action Mailer defaults. Use to set options like `from` or `reply_to` for every mailer. These default to:
414414
415415
```ruby
416-
:mime_version => "1.0",
417-
:charset => "UTF-8",
418-
:content_type => "text/plain",
419-
:parts_order => [ "text/plain", "text/enriched", "text/html" ]
416+
mime_version: "1.0",
417+
charset: "UTF-8",
418+
content_type: "text/plain",
419+
parts_order: ["text/plain", "text/enriched", "text/html"]
420+
```
421+
422+
Assign a hash to set additional options:
423+
424+
```ruby
425+
config.action_mailer.default_options = {
426+
427+
}
420428
```
421429
422430
* `config.action_mailer.observers` registers observers which will be notified when mail is delivered.

0 commit comments

Comments
 (0)