Skip to content

Commit 6b0c8c4

Browse files
committed
adding sendgrid
1 parent 8f6f173 commit 6b0c8c4

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

config/environments/production.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,14 @@
4949
# Send deprecation notices to registered listeners
5050
config.active_support.deprecation = :notify
5151
end
52+
53+
ActionMailer::Base.smtp_settings = {
54+
:address => 'smtp.sendgrid.net',
55+
:port => '587',
56+
:authentication => :plain,
57+
:user_name => ENV['SENDGRID_USERNAME'],
58+
:password => ENV['SENDGRID_PASSWORD'],
59+
:domain => 'hackety-hack.com'
60+
}
61+
ActionMailer::Base.delivery_method = :smtp
62+

0 commit comments

Comments
 (0)