I have created a custom form module, when I send email and the template showing Luma theme header and footer but for another emails everything loads from custom theme.

Question : Why this is happening?

Any help would be appreciable.


For 'store' => \Magento\Store\Model\Store::DEFAULT_STORE_ID

use 'store' => $this->storeManager->getStore()->getId()

Where $this->storeManager is alise of Magento\Store\Model\StoreManagerInterface

  • Thanks @savan Patel, – Mohammad Faizan Apr 26 '19 at 10:53
  • 1
    It's my pleasure @MohammadFaizan – Savan Patel Apr 26 '19 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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