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 1d17608 commit b78e843Copy full SHA for b78e843
config/environments/production.rb
@@ -76,4 +76,19 @@
76
77
# Do not dump schema after migrations.
78
config.active_record.dump_schema_after_migration = false
79
+
80
+ config.action_mailer.smtp_settings = {
81
+ address: 'smtp.sendgrid.net',
82
+ port: 587,
83
+ domain: ENV['EMAIL_DOMAIN'],
84
+ authentication: 'plain',
85
+ enable_starttls_auto: true,
86
+ user_name: ENV['SENDGRID_USERNAME'],
87
+ password: ENV['SENDGRID_PASSWORD']
88
+ }
89
+ # ActionMailer Config
90
+ config.action_mailer.default_url_options = { host: ENV['EMAIL_DOMAIN'] }
91
+ config.action_mailer.delivery_method = :smtp
92
+ config.action_mailer.perform_deliveries = true
93
+ config.action_mailer.raise_delivery_errors = false
94
end
0 commit comments