Skip to content

Instantly share code, notes, and snippets.

@kouky
Created March 3, 2010 04:44
Show Gist options
  • 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 => "[email protected]",
: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