aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-09 17:18:01 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-09 17:18:01 +0000
commit0fe8e3d6c28f64cf1e35bd129595cd79a7c77091 (patch)
treedab6f5a53715b1a2befd961424b491eb9840bf51 /actionmailer
parent14762fd229dfdde98bef224f198ff1ade7336b5b (diff)
downloadrails-0fe8e3d6c28f64cf1e35bd129595cd79a7c77091.tar.gz
rails-0fe8e3d6c28f64cf1e35bd129595cd79a7c77091.tar.bz2
rails-0fe8e3d6c28f64cf1e35bd129595cd79a7c77091.zip
Added a config example in README #1626 [courtenay]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1788 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer')
-rwxr-xr-xactionmailer/README11
-rw-r--r--actionmailer/lib/action_mailer/base.rb3
2 files changed, 12 insertions, 2 deletions
diff --git a/actionmailer/README b/actionmailer/README
index e0d5840c6f..8eb973668e 100755
--- a/actionmailer/README
+++ b/actionmailer/README
@@ -82,6 +82,17 @@ This Mailman can be the target for Postfix. In Rails, you would use the runner l
./script/runner 'Mailman.receive(STDIN.read)'
+== Configuration
+
+The Base class has the full list of configuration options. Here's an example:
+
+ActionMailer::Base.server_settings = {
+ :address=>'smtp.yourserver.com', # default: localhost
+ :port=>'25', # default: 25
+ :user_name=>'user',
+ :password=>'pass',
+ :authentication=>:plain # :plain, :login or :cram_md5
+}
== Dependencies
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 89c202fd01..b26c11b44b 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -116,8 +116,7 @@ module ActionMailer #:nodoc:
# and appear last in the mime encoded message. You can also pick a different order from inside a method with
# <tt>@implicit_parts_order</tt>.
class Base
- include ActionMailer::AdvAttrAccessor
- include ActionMailer::PartContainer
+ include AdvAttrAccessor, PartContainer
private_class_method :new #:nodoc: