mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
Possible fix for SMTP errors
This commit is contained in:
parent
bf0d19e5fd
commit
0f886c6fd5
2 changed files with 7 additions and 11 deletions
|
@ -9,9 +9,7 @@ APP_DOMAIN=
|
||||||
# This is only needed if you intend on sending emails from your Maybe instance (such as for password resets or email financial reports).
|
# This is only needed if you intend on sending emails from your Maybe instance (such as for password resets or email financial reports).
|
||||||
# Resend.com is a good option that offers a free tier for sending emails.
|
# Resend.com is a good option that offers a free tier for sending emails.
|
||||||
SMTP_ADDRESS=
|
SMTP_ADDRESS=
|
||||||
SMTP_PORT=25
|
SMTP_PORT=465
|
||||||
SMTP_DOMAIN=
|
|
||||||
SMTP_USERNAME=
|
SMTP_USERNAME=
|
||||||
SMTP_PASSWORD=
|
SMTP_PASSWORD=
|
||||||
SMTP_AUTHENTICATION=plain
|
TLS=true
|
||||||
SMTP_ENABLE_STARTTLS_AUTO=true
|
|
|
@ -72,11 +72,9 @@ Rails.application.configure do
|
||||||
config.action_mailer.smtp_settings = {
|
config.action_mailer.smtp_settings = {
|
||||||
address: ENV["SMTP_ADDRESS"],
|
address: ENV["SMTP_ADDRESS"],
|
||||||
port: ENV["SMTP_PORT"],
|
port: ENV["SMTP_PORT"],
|
||||||
domain: ENV["SMTP_DOMAIN"],
|
|
||||||
user_name: ENV["SMTP_USERNAME"],
|
user_name: ENV["SMTP_USERNAME"],
|
||||||
password: ENV["SMTP_PASSWORD"],
|
password: ENV["SMTP_PASSWORD"],
|
||||||
authentication: ENV["SMTP_AUTHENTICATION"],
|
tls: ENV["TLS"] == "true"
|
||||||
enable_starttls_auto: ENV["SMTP_ENABLE_STARTTLS_AUTO"] == "true"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ignore bad email addresses and do not raise email delivery errors.
|
# Ignore bad email addresses and do not raise email delivery errors.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue