Skip to content
This repository
Browse code

Added a config example in README #1626 [courtenay]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1788 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 0fe8e3d6c28f64cf1e35bd129595cd79a7c77091 1 parent 14762fd
David Heinemeier Hansson authored July 09, 2005
11  actionmailer/README
@@ -82,6 +82,17 @@ This Mailman can be the target for Postfix. In Rails, you would use the runner l
82 82
 
83 83
   ./script/runner 'Mailman.receive(STDIN.read)'
84 84
 
  85
+== Configuration
  86
+
  87
+The Base class has the full list of configuration options. Here's an example:
  88
+
  89
+ActionMailer::Base.server_settings = {
  90
+  :address=>'smtp.yourserver.com',    # default: localhost
  91
+  :port=>'25',                        # default: 25
  92
+  :user_name=>'user',
  93
+  :password=>'pass',
  94
+  :authentication=>:plain             # :plain, :login or :cram_md5
  95
+}
85 96
 
86 97
 == Dependencies
87 98
 
3  actionmailer/lib/action_mailer/base.rb
@@ -116,8 +116,7 @@ module ActionMailer #:nodoc:
116 116
   #   and appear last in the mime encoded message. You can also pick a different order from inside a method with
117 117
   #   <tt>@implicit_parts_order</tt>.
118 118
   class Base
119  
-    include ActionMailer::AdvAttrAccessor
120  
-    include ActionMailer::PartContainer
  119
+    include AdvAttrAccessor, PartContainer
121 120
 
122 121
     private_class_method :new #:nodoc:
123 122
 

0 notes on commit 0fe8e3d

Please sign in to comment.
Something went wrong with that request. Please try again.