Created
February 15, 2009 03:59
-
-
Save carmelyne/64590 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # First, specify the Host that we will be using later for user_notifier.rb | |
| HOST = 'http://www.yourrailsapp.com' | |
| # Second, add the :user_observer | |
| Rails::Initializer.run do |config| | |
| # The user observer goes inside the Rails::Initializer block | |
| config.active_record.observers = :user_observer | |
| end | |
| # Third, add your SMTP settings | |
| ActionMailer::Base.delivery_method = :smtp | |
| ActionMailer::Base.smtp_settings = { | |
| :address => "mail.yourrailsapp.com", | |
| :port => 25, | |
| :domain => "mail.yourrailsapp.com", | |
| :user_name => "[email protected]", | |
| :password => "yourrailsapp", | |
| :authentication => :login | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment