aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorDejan Simic <desimic@gmail.com>2012-08-04 18:53:14 +0200
committerDejan Simic <desimic@gmail.com>2012-08-04 18:53:14 +0200
commit1a1230bffbec486eb85d9e6669486498fa20cb04 (patch)
tree9e6b656215984c15987f12ae433671e203e960df /guides
parent3d3fa165e40c8cdaaebdab9dd2985d0ca3a36236 (diff)
downloadrails-1a1230bffbec486eb85d9e6669486498fa20cb04.tar.gz
rails-1a1230bffbec486eb85d9e6669486498fa20cb04.tar.bz2
rails-1a1230bffbec486eb85d9e6669486498fa20cb04.zip
Document default_options configuration in ActionMailer guide [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/action_mailer_basics.textile2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/action_mailer_basics.textile b/guides/source/action_mailer_basics.textile
index 54e55d7260..bb5cbcba14 100644
--- a/guides/source/action_mailer_basics.textile
+++ b/guides/source/action_mailer_basics.textile
@@ -458,6 +458,7 @@ The following configuration options are best made in one of the environment file
|+perform_deliveries+|Determines whether deliveries are actually carried out when the +deliver+ method is invoked on the Mail message. By default they are, but this can be turned off to help functional testing.|
|+deliveries+|Keeps an array of all the emails sent out through the Action Mailer with delivery_method :test. Most useful for unit and functional testing.|
|+async+|Setting this flag will turn on asynchronous message sending, message rendering and delivery will be pushed to <tt>Rails.queue</tt> for processing.|
+|+default_options+|Allows you to set default values for the <tt>mail</tt> method options (<tt>:from</tt>, <tt>:reply_to</tt>, etc.).|
h4. Example Action Mailer Configuration
@@ -472,6 +473,7 @@ config.action_mailer.delivery_method = :sendmail
# }
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
+config.action_mailer.default_options = {from: "no-replay@example.org"}
</ruby>
h4. Action Mailer Configuration for GMail