Skip to content

Commit 735a0f7

Browse files
committed
config/set up sendgrid
1 parent f747a6c commit 735a0f7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

config/environments/production.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@
6262

6363
config.action_mailer.perform_caching = false
6464

65+
config.action_mailer.delivery_method = :smtp
66+
config.action_mailer.default_url_options = { host: "https://www.snippetsafe.com" }
67+
config.smtp_settings = {
68+
:user_name => ENV['SENDGRID_USERNAME'],
69+
:password => ENV['SENDGRID_PASSWORD'],
70+
:domain => 'snippetsafe.com',
71+
:address => 'smtp.sendgrid.net',
72+
:port => 587,
73+
:authentication => :plain,
74+
:enable_starttls_auto => true
75+
}
76+
6577
# Ignore bad email addresses and do not raise email delivery errors.
6678
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
6779
# config.action_mailer.raise_delivery_errors = false

0 commit comments

Comments
 (0)