Confirmation emails have no FROM or FROM email address 2.2.4
Going to : /vendor/magento/module-sales/Model/Order/Email/SenderBuilder.php
Edit function configureEmailTemplate() and add this line
$this->transportBuilder->setFrom($this->identityContainer->getEmailIdentity());
to show like below:
protected function configureEmailTemplate()
{
$this->transportBuilder->setTemplateIdentifier($this->templateContainer->getTemplateId());
$this->transportBuilder->setTemplateOptions($this->templateContainer->getTemplateOptions());
$this->transportBuilder->setTemplateVars($this->templateContainer->getTemplateVars());
$this->transportBuilder->setFrom($this->identityContainer->getEmailIdentity()); //the below are commented
//$this->transportBuilderByStore->setFromByStore(
// $this->identityContainer->getEmailIdentity(),
// $this->identityContainer->getStore()->getId()
// );
}
Its a simple fix and its work perfectly.
Going to : /vendor/magento/module-sales/Model/Order/Email/SenderBuilder.php
Edit function configureEmailTemplate() and add this line
$this->transportBuilder->setFrom($this->identityContainer->getEmailIdentity());
to show like below:
protected function configureEmailTemplate()
{
$this->transportBuilder->setTemplateIdentifier($this->templateContainer->getTemplateId());
$this->transportBuilder->setTemplateOptions($this->templateContainer->getTemplateOptions());
$this->transportBuilder->setTemplateVars($this->templateContainer->getTemplateVars());
$this->transportBuilder->setFrom($this->identityContainer->getEmailIdentity()); //the below are commented
//$this->transportBuilderByStore->setFromByStore(
// $this->identityContainer->getEmailIdentity(),
// $this->identityContainer->getStore()->getId()
// );
}
Its a simple fix and its work perfectly.
No comments:
Post a Comment