/**
  * Configure email template
  *
  * @return void
  */
 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());
 }
Example #2
0
 /**
  * @return array
  */
 protected function getTemplateOptions()
 {
     return ['area' => \Magento\Framework\App\Area::AREA_FRONTEND, 'store' => $this->identityContainer->getStore()->getStoreId()];
 }