From ceb409709a6d7c6b069ce74560a47a480c8ff2ad Mon Sep 17 00:00:00 2001 From: Carol Nichols Date: Sun, 11 Dec 2011 20:40:23 -0500 Subject: [PATCH] Heroku+sendgrid+pony config apparently necessary on the cedar stack, maybe this is why mail isn't working --- config/initializers/sendgrid_pony.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 config/initializers/sendgrid_pony.rb diff --git a/config/initializers/sendgrid_pony.rb b/config/initializers/sendgrid_pony.rb new file mode 100644 index 00000000..90fc7c1f --- /dev/null +++ b/config/initializers/sendgrid_pony.rb @@ -0,0 +1,12 @@ +Pony.options = { + :via => :smtp, + :via_options => { + :address => 'smtp.sendgrid.net', + :port => '587', + :domain => 'heroku.com', + :user_name => ENV['SENDGRID_USERNAME'], + :password => ENV['SENDGRID_PASSWORD'], + :authentication => :plain, + :enable_starttls_auto => true + } +} \ No newline at end of file