Permalink
Browse files

Add sendgrid smtp

  • Loading branch information...
JDutil committed Aug 26, 2011
1 parent 0987622 commit 3b7068382d5a9b8bb5e95f7d37030fde291986ba
Showing with 6 additions and 1 deletion.
  1. +6 −1 config/environments/production.rb
@@ -1,6 +1,11 @@
ContactUsDemo::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
-
+ config.action_mailer.delivery_method = :smtp
+ ActionMailer::Base.smtp_settings = {
+ :address => "smtp.sendgrid.net",
+ :port => "25",
+ :authentication => :plain
+ }
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true

0 comments on commit 3b70683

Please sign in to comment.