aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/README
diff options
context:
space:
mode:
authorCody Fauser <cody@jadedpixel.com>2008-05-14 09:10:02 -0400
committerCody Fauser <cody@jadedpixel.com>2008-05-14 09:10:02 -0400
commitb8c46c86f0b785f6afc3c58eeb1b347543f5901e (patch)
tree15edaea17ba64e6c43abacee0d5a0af17604e293 /actionmailer/README
parentf4aaa2e99c350466e54afefdf278b4ba04008cd9 (diff)
downloadrails-b8c46c86f0b785f6afc3c58eeb1b347543f5901e.tar.gz
rails-b8c46c86f0b785f6afc3c58eeb1b347543f5901e.tar.bz2
rails-b8c46c86f0b785f6afc3c58eeb1b347543f5901e.zip
Improve and cleanup ActionMailer documentation
Diffstat (limited to 'actionmailer/README')
-rwxr-xr-xactionmailer/README17
1 files changed, 8 insertions, 9 deletions
diff --git a/actionmailer/README b/actionmailer/README
index d9012704ad..0e16ea6ec6 100755
--- a/actionmailer/README
+++ b/actionmailer/README
@@ -19,8 +19,7 @@ are all set up this way. An example of such a method:
recipients recipient
subject "[Signed up] Welcome #{recipient}"
from "system@loudthinking.com"
-
- body(:recipient => recipient)
+ body :recipient => recipient
end
The body of the email is created by using an Action View template (regular
@@ -91,13 +90,13 @@ a limited number of email.
The Base class has the full list of configuration options. Here's an example:
-ActionMailer::Base.smtp_settings = {
- :address=>'smtp.yourserver.com', # default: localhost
- :port=>'25', # default: 25
- :user_name=>'user',
- :password=>'pass',
- :authentication=>:plain # :plain, :login or :cram_md5
-}
+ ActionMailer::Base.smtp_settings = {
+ :address => 'smtp.yourserver.com', # default: localhost
+ :port => '25', # default: 25
+ :user_name => 'user',
+ :password => 'pass',
+ :authentication => :plain # :plain, :login or :cram_md5
+ }
== Dependencies