]> cat aescling's git repositories - mastodon.git/commitdiff
Fix sign in token and warning emails failed to send in some cases (#17589)
authorhelloworldstack <66512512+helloworldstack@users.noreply.github.com>
Fri, 18 Feb 2022 19:43:42 +0000 (02:43 +0700)
committerGitHub <noreply@github.com>
Fri, 18 Feb 2022 19:43:42 +0000 (20:43 +0100)
app/mailers/user_mailer.rb

index 583c948b0eba1bf5a3969c56d1631964971b0f16..1a823328c4f2bde80cb83170dc07a2b115cca347 100644 (file)
@@ -169,7 +169,7 @@ class UserMailer < Devise::Mailer
     I18n.with_locale(@resource.locale || I18n.default_locale) do
       mail to: @resource.email,
            subject: I18n.t("user_mailer.warning.subject.#{@warning.action}", acct: "@#{user.account.local_username_and_domain}"),
-           reply_to: Setting.site_contact_email
+           reply_to: ENV['SMTP_REPLY_TO']
     end
   end
 
@@ -206,7 +206,7 @@ class UserMailer < Devise::Mailer
     I18n.with_locale(@resource.locale || I18n.default_locale) do
       mail to: @resource.email,
            subject: I18n.t('user_mailer.sign_in_token.subject'),
-           reply_to: Setting.site_contact_email
+           reply_to: ENV['SMTP_REPLY_TO']
     end
   end
 end