We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f747a6c commit 735a0f7Copy full SHA for 735a0f7
config/environments/production.rb
@@ -62,6 +62,18 @@
62
63
config.action_mailer.perform_caching = false
64
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
+
77
# Ignore bad email addresses and do not raise email delivery errors.
78
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
79
# config.action_mailer.raise_delivery_errors = false
0 commit comments