From 71fa0f09c62f2fb511739eaf461426d4730e0c73 Mon Sep 17 00:00:00 2001 From: drummer83 Date: Sat, 15 Feb 2025 13:32:56 +0100 Subject: [PATCH] Add 'reply to' email address to order emails for shops --- app/mailers/spree/order_mailer.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/mailers/spree/order_mailer.rb b/app/mailers/spree/order_mailer.rb index e4d886d3e9..b396e79283 100644 --- a/app/mailers/spree/order_mailer.rb +++ b/app/mailers/spree/order_mailer.rb @@ -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