Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save toolmantim/320550 to your computer and use it in GitHub Desktop.
Save toolmantim/320550 to your computer and use it in GitHub Desktop.
# Configure ActionMailer
require 'action_mailer'
ActionMailer::Base.template_root = options.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