Guys am trying to modifying variables used in email templates, like store name, store email for every email.

How can we do this good manner?

Add plugin on \Magento\Framework\Mail\TransportInterface is good approach?

For example . : its in order_new.html

 {{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}

want to change store_name here

  • what do you mean by modifying variables? Feb 18, 2019 at 15:07
  • for example we are showing contact at [email protected], want to change this email
    – Daniel_12
    Feb 18, 2019 at 15:15

1 Answer 1


What's displayed for store name and store email can be changed in the System-Configuration.

Stores -> Settings -> Configuration -> General -> General -> Store Information -> Store Name and Stores -> Settings -> Configuration -> General -> Store Email Addresses -> General Contact -> Sender Name

  • yeah I know about it but I want to change it programatically because I have more than 50 stores
    – Daniel_12
    Feb 18, 2019 at 15:27
  • and how exactly would changings tihs programatically faster? Feb 18, 2019 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.