diff --git a/app/mailers/enterprise_mailer.rb b/app/mailers/enterprise_mailer.rb index d33baf3be0..e47291e900 100644 --- a/app/mailers/enterprise_mailer.rb +++ b/app/mailers/enterprise_mailer.rb @@ -24,7 +24,8 @@ class EnterpriseMailer < ApplicationMailer subject = t('.subject', enterprise: @enterprise.name) mail(to: user.email, - subject:) + subject:, + reply_to: @enterprise.contact.email) end end diff --git a/app/mailers/payment_mailer.rb b/app/mailers/payment_mailer.rb index 7481353b94..661f090d0a 100644 --- a/app/mailers/payment_mailer.rb +++ b/app/mailers/payment_mailer.rb @@ -12,7 +12,9 @@ class PaymentMailer < ApplicationMailer subject = t('.subject', number: @order.number, distributor: @order.distributor.name) - mail(to: payment.order.email, subject:) + mail(to: @order.email, + subject:, + reply_to: @order.distributor.contact.email) end end diff --git a/app/mailers/spree/order_mailer.rb b/app/mailers/spree/order_mailer.rb index d628f5a18d..b63bc9d167 100644 --- a/app/mailers/spree/order_mailer.rb +++ b/app/mailers/spree/order_mailer.rb @@ -17,7 +17,8 @@ module Spree number: @order.number, distributor: @order.distributor.name) mail(to: @order.email, - subject:) + subject:, + reply_to: @order.distributor.contact.email) end end diff --git a/app/mailers/spree/shipment_mailer.rb b/app/mailers/spree/shipment_mailer.rb index 8a6f8e38b7..5d1795eb35 100644 --- a/app/mailers/spree/shipment_mailer.rb +++ b/app/mailers/spree/shipment_mailer.rb @@ -12,7 +12,9 @@ module Spree subject = t(base_subject, number: @order.number, distributor: @order.distributor.name) - mail(to: @shipment.order.email, subject:) + mail(to: @shipment.order.email, + subject:, + reply_to: @order.distributor.contact.email) end private