Browse Source

Fix sign in token and warning emails failed to send in some cases (#17589)

closed-social-glitch-2
helloworldstack 2 years ago
committed by GitHub
parent
commit
2426577a91
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/mailers/user_mailer.rb

+ 2
- 2
app/mailers/user_mailer.rb View 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

Loading…
Cancel
Save