Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kouky
Created March 3, 2010 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kouky/320324 to your computer and use it in GitHub Desktop.
Save kouky/320324 to your computer and use it in GitHub Desktop.
# Configure ActionMailer
require 'action_mailer'
ActionMailer::Base.template_root = "#{File.dirname(__FILE__)}/views"
ActionMailer::Base.smtp_settings = {
:address => "smtp.sendgrid.net",
:port => "25",
:authentication => :plain,
:user_name => "username@domain.com",
:password => "yourpassword"
}
# Make sure we don't accidentally send emails in development
configure :development do
ActionMailer::Base.raise_delivery_errors = false
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.logger = Logger.new(STDOUT)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment