Add Reply-To header for new pending account emails

When I deny someone's application, I usually send them an email explaining why.
This patch facilitates that.
This commit is contained in:
Kay Faraday 2021-08-02 21:06:41 +00:00 committed by Claire
parent 359f8de2e8
commit 4ec713ae6c
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class AdminMailer < ApplicationMailer
@instance = Rails.configuration.x.local_domain
locale_for_account(@me) do
mail to: @me.user_email, subject: I18n.t('admin_mailer.new_pending_account.subject', instance: @instance, username: @account.username)
mail to: @me.user_email, reply_to: user.email, subject: I18n.t('admin_mailer.new_pending_account.subject', instance: @instance, username: @account.username)
end
end