The personal finance app for everyone
Possible fix for SMTP errors
Josh Pigford0f886c6fd5e8
diff --git a/.env.example b/.env.exampleindex f1e6b46b..5e08ea24 100644--- a/.env.example+++ b/.env.example@@ -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).# Resend.com is a good option that offers a free tier for sending emails.SMTP_ADDRESS=-SMTP_PORT=25-SMTP_DOMAIN=+SMTP_PORT=465SMTP_USERNAME=SMTP_PASSWORD=-SMTP_AUTHENTICATION=plain-SMTP_ENABLE_STARTTLS_AUTO=true\ No newline at end of file+TLS=true\ No newline at end of filediff --git a/config/environments/production.rb b/config/environments/production.rbindex 5ed96e05..bf991d0a 100644--- a/config/environments/production.rb+++ b/config/environments/production.rb@@ -70,13 +70,11 @@ Rails.application.configure doconfig.action_mailer.default_url_options = { host: ENV["APP_DOMAIN"] }config.action_mailer.delivery_method = :smtpconfig.action_mailer.smtp_settings = {- address: ENV["SMTP_ADDRESS"],- port: ENV["SMTP_PORT"],- domain: ENV["SMTP_DOMAIN"],- user_name: ENV["SMTP_USERNAME"],- password: ENV["SMTP_PASSWORD"],- authentication: ENV["SMTP_AUTHENTICATION"],- enable_starttls_auto: ENV["SMTP_ENABLE_STARTTLS_AUTO"] == "true"+ address: ENV["SMTP_ADDRESS"],+ port: ENV["SMTP_PORT"],+ user_name: ENV["SMTP_USERNAME"],+ password: ENV["SMTP_PASSWORD"],+ tls: ENV["TLS"] == "true"}# Ignore bad email addresses and do not raise email delivery errors.