Add 'reply to' email address to order emails for shops

This commit is contained in:
drummer83
2025-02-15 13:32:56 +01:00
committed by Konrad
parent aff5cd8d44
commit 71fa0f09c6

View File

@@ -23,7 +23,8 @@ module Spree
I18n.with_locale valid_locale(@order.distributor.owner) do
subject = I18n.t('spree.order_mailer.cancel_email_for_shop.subject')
mail(to: @order.distributor.contact.email,
subject:)
subject:,
reply_to: @order.email)
end
end
@@ -43,7 +44,8 @@ module Spree
I18n.with_locale valid_locale(@order.user) do
subject = mail_subject(t('spree.order_mailer.confirm_email.subject'), resend)
mail(to: @order.distributor.contact.email,
subject:)
subject:,
reply_to: @order.email)
end
end