Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 dhh authored
Showing with 12 additions and 2 deletions.
  1. +11 −0 actionmailer/README
  2. +1 −2  actionmailer/lib/action_mailer/base.rb
11 actionmailer/README
View
@@ -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
3  actionmailer/lib/action_mailer/base.rb
View
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.