Improve email config
Add specific auth options, specify sender address
This commit is contained in:
parent
8a938831e9
commit
fa8650b43a
@ -64,11 +64,17 @@ Rails.application.configure do
|
|||||||
config.action_mailer.smtp_settings = {
|
config.action_mailer.smtp_settings = {
|
||||||
address: "mail.gandi.net",
|
address: "mail.gandi.net",
|
||||||
port: "587",
|
port: "587",
|
||||||
|
authentication: plain,
|
||||||
|
enable_starttls_auto: true,
|
||||||
user_name: Rails.application.credentials.smtp[:username],
|
user_name: Rails.application.credentials.smtp[:username],
|
||||||
password: Rails.application.credentials.smtp[:password]
|
password: Rails.application.credentials.smtp[:password]
|
||||||
}
|
}
|
||||||
|
|
||||||
config.action_mailer.default_url_options = { host: "accounts.kosmos.org", protocol: "https" }
|
config.action_mailer.default_url_options = {
|
||||||
|
host: "accounts.kosmos.org",
|
||||||
|
protocol: "https",
|
||||||
|
from: "accounts@kosmos.org"
|
||||||
|
}
|
||||||
|
|
||||||
# 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