Permalink
Browse files

Mention the default config.action_mailer.default options in Configura…

…tion guide
  • Loading branch information...
1 parent 66aefed commit d0006121c581d0acadf7d46f955051be10128238 @radar radar committed Nov 26, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 railties/guides/source/configuring.textile
@@ -187,7 +187,13 @@ There are a number of settings available on +config.action_mailer+:
* +config.action_mailer.perform_deliveries+ specifies whether mail will actually be delivered. By default this is +true+; it can be convenient to set it to +false+ for testing.
-* +config.action_mailer.default_mime_version+ is the default MIME version for the message. It defaults to +1.0+.
+* +config.action_mailer.default+ configures Action Mailer defaults. These default to:
+<ruby>
+ :mime_version => "1.0",
+ :charset => "UTF-8",
+ :content_type => "text/plain",
+ :parts_order => [ "text/plain", "text/enriched", "text/html" ]
+</ruby>
* +config.action_mailer.default_implicit_parts_order+ - When a message is built implicitly (i.e. multiple parts are assembled from templates
which specify the content type in their filenames) this variable controls how the parts are ordered. Defaults to +["text/html", "text/enriched", "text/plain"]+. Items that appear first in the array have higher priority in the mail client

0 comments on commit d000612

Please sign in to comment.