Skip to content

Instantly share code, notes, and snippets.

@carmelyne
Created February 15, 2009 03:59
Show Gist options
  • Select an option

  • Save carmelyne/64590 to your computer and use it in GitHub Desktop.

Select an option

Save carmelyne/64590 to your computer and use it in GitHub Desktop.
# 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