From 1a1230bffbec486eb85d9e6669486498fa20cb04 Mon Sep 17 00:00:00 2001 From: Dejan Simic Date: Sat, 4 Aug 2012 18:53:14 +0200 Subject: Document default_options configuration in ActionMailer guide [ci skip] --- guides/source/action_mailer_basics.textile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides') 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 Rails.queue for processing.| +|+default_options+|Allows you to set default values for the mail method options (:from, :reply_to, 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"} h4. Action Mailer Configuration for GMail -- cgit v1.2.3