From 4ec713ae6c5a3a3a5ed33eb5f5b202ab17f78e3e Mon Sep 17 00:00:00 2001 From: Kay Faraday Date: Mon, 2 Aug 2021 21:06:41 +0000 Subject: [PATCH] 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. --- app/mailers/admin_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/admin_mailer.rb b/app/mailers/admin_mailer.rb index 11fd09e30..2f3732176 100644 --- a/app/mailers/admin_mailer.rb +++ b/app/mailers/admin_mailer.rb @@ -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