Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Use method for Reimbursement Mailer as with other mailers (#11689)

Damian Legawiec7480d3e78261
diff --git a/emails/app/mailers/spree/reimbursement_mailer.rb b/emails/app/mailers/spree/reimbursement_mailer.rb
index de2e13369c..544dd1007a 100644
--- a/emails/app/mailers/spree/reimbursement_mailer.rb
+++ b/emails/app/mailers/spree/reimbursement_mailer.rb
@@ -6,7 +6,7 @@ module Spree
current_store = @reimbursement.store || Spree::Store.default
subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '')
subject += "#{current_store.name} #{Spree.t('reimbursement_mailer.reimbursement_email.subject')} ##{@order.number}"
- mail(to: @order.email, from: current_store.mail_from_address, subject: subject, store_url: current_store.url, reply_to: reply_to_address)
+ mail(to: @order.email, from: from_address, subject: subject, store_url: current_store.url, reply_to: reply_to_address)
end
end
end