Configure SMTP settings #289
@ -72,6 +72,14 @@ Rails.application.configure do
|
|||||||
# config.active_job.queue_name_prefix = "wedding_planner_production"
|
# config.active_job.queue_name_prefix = "wedding_planner_production"
|
||||||
|
|
||||||
config.action_mailer.perform_caching = false
|
config.action_mailer.perform_caching = false
|
||||||
|
config.action_mailer.delivery_method = :smtp
|
||||||
|
config.action_mailer.smtp_settings = {
|
||||||
|
address: File.read(ENV["SMTP_ADDRESS"]).strip,
|
||||||
|
port: File.read(ENV["SMTP_PORT"]).strip,
|
||||||
|
user_name: File.read(ENV["SMTP_USER_NAME"]).strip,
|
||||||
|
password: File.read(ENV["SMTP_PASSWORD"]).strip,
|
||||||
|
authentication: File.read(ENV["SMTP_AUTHENTICATION"].strip&.to_sym)
|
||||||
|
}
|
||||||
|
|
||||||
# Ignore bad email addresses and do not raise email delivery errors.
|
# Ignore bad email addresses and do not raise email delivery errors.
|
||||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user