Sending order confirmation email template in Magento 2












0















I am trying to send an order email confirmation with adding extra attributes values to Admin, But it's not working for me.



Here I have 2 Email templates.



1) It's a default email template



2) Customized email template



First one is the default, and it will send Magento by default.



For the second one I tried below code, it's printing as it is table format.



<?php

namespace ABCSolutionsAvailableStoreObserver;

use MagentoCatalogApiProductRepositoryInterface;
use MagentoStoreModelStoreManagerInterface;


class AfterPlaceOrderObserver implements MagentoFrameworkEventObserverInterface{


/**
* Store model manager
*
* @var StoreManagerInterface
*/
protected $storeManager;

/**
* @var MagentoFrameworkTranslateInlineStateInterface
*/
protected $_inlineTranslation;

/**
* @var MagentoFrameworkMailTemplateTransportBuilder
*/
protected $_transportBuilder;

/**
* @var MagentoCatalogModelProductFactory
*/
protected $_productLoader;

/**
* @var MagentoCatalogApiProductRepositoryInterface
*/
protected $productRepository;

/**
* @var MagentoSalesModelOrder
*/
protected $_order;

/**
* @var MagentoSalesModelOrderNotifier
*/
protected $_orderNotifier;

/**
* @param MagentoFrameworkTranslateInlineStateInterface $inlineTranslation
* @param MagentoFrameworkMailTemplateTransportBuilder $transportBuilder
* @param ProductRepositoryInterface $productRepository
* @param StoreManagerInterface $storeManager
* @param MagentoSalesModelOrder $order
* @param MagentoSalesModelOrderNotifier $orderNotifier
*/
public function __construct(
MagentoFrameworkTranslateInlineStateInterface $inlineTranslation,
MagentoFrameworkMailTemplateTransportBuilder $transportBuilder,
//MagentoCatalogModelProductFactory $_productLoader
ProductRepositoryInterface $productRepository,
StoreManagerInterface $storeManager,
MagentoSalesModelOrder $order,
MagentoSalesModelOrderNotifier $orderNotifier
){
$this->_inlineTranslation = $inlineTranslation;
$this->_transportBuilder = $transportBuilder;
//$this->_productLoader = $_productLoader;
$this->productRepository = $productRepository;
$this->storeManager = $storeManager;
$this->_order = $order;
$this->_orderNotifier = $orderNotifier;
}

/**
* @param MagentoFrameworkEventObserver $observer
*/
public function execute(MagentoFrameworkEventObserver $observer)
{
/* @var $order MagentoSalesModelOrder */
$order = $observer->getEvent()->getOrder();

$templateOptions = array('area' => MagentoFrameworkAppArea::AREA_FRONTEND,'store' => 1);
$mediaPath = $this->storeManager->getStore(1)->getBaseURL(MagentoFrameworkUrlInterface::URL_TYPE_MEDIA) . 'catalog/product';

$table = "";
$table .= "<table>";
$table .= "<thead>";
$table .= "<tr>";
$table .= "<th>";
$table .= "Product Image";
$table .= "</th>";
$table .= "<th>";
$table .= "Product Name";
$table .= "</th>";
$table .= "<th>";
$table .= "Qty.";
$table .= "</th>";
$table .= "<th>";
$table .= "Price";
$table .= "</th>";
$table .= "</tr>";
$table .= "</thead>";
//start foreach for items
foreach($order->getAllItems() as $_items){

$_product = $this->productRepository->getById($_items->getProductId());
$imageThumbNail = $mediaPath . $_product->getThumbnail();
$pSKU=$_product->getSku();
$productName = $_product->getName();
$QtyOrdered = $_items->getQtyOrdered();
$pPrice = $_product->getPrice();
$CAField = $_product->getCustomAttributeField();

$table .= "<tr>";
$table .= "<td style='width: 120px;text-align: center;'>";
$table .= "<img src='$imageThumbNail' title='$productName' style='width: 70px;height: 70px;' />";
$table .= "</td>";
$table .= "<td style='width: 200px;'>";
$table .= "<table>";
$table .= "<tr>";
$table .= "<td>";
$table .= "<span style='color: Blue;'>SKU: </span>";
$table .= "</td>";
$table .= "<td>";
$table .= " <span>$pSKU</span>";
$table .= "</td>";
$table .= "</tr>";
$table .= "<tr>";
$table .= "<td>";
$table .= "<span style='color: Blue;'>Cust. Attr. Field: </span>";
$table .= "</td>";
$table .= "<td>";
$table .= "<span style='font-size: 14px;'>$CAField</span>";
$table .= "</td>";
$table .= "</tr>";
$table .= "</table>";
$table .= "</td>";
$table .= "<td style='width: 50px;text-align: center;'>";
$table .= "<span>$QtyOrdered</span>";
$table .= "</td>";
$table .= "<td style='text-align: center;'>";
$table .= "<span>$pPrice</span>";
$table .= "</td>";
$table .= "</tr>";

}

//end foreach
$table .= "</table>";

$mass = $table;

$templateVars = array(
'store' => 1,
'orderNumber' => $order->getIncrementId(),
'customer_name' => $order->getCustomerName(),
'message' => $mass
);

$from = array(
'email' => 'info@gmail.com',
'name' => 'Customer Care'
);

$to = "abc@gmail.com";
try {
$this->_inlineTranslation->suspend();
$to = array($to);
$transport = $this->_transportBuilder->setTemplateIdentifier('custom_email_template')
->setTemplateOptions($templateOptions)
->setTemplateVars($templateVars)
->setFrom($from)
->addTo($to)
->getTransport();
$transport->sendMessage();
$this->_inlineTranslation->resume();
}
catch (Exception $e)
{
echo $e->getMessage();
}
}

}


It's printing table format, like below image.



enter image description here



Please suggest us to send the email of order email copy with extra attributes?









share



























    0















    I am trying to send an order email confirmation with adding extra attributes values to Admin, But it's not working for me.



    Here I have 2 Email templates.



    1) It's a default email template



    2) Customized email template



    First one is the default, and it will send Magento by default.



    For the second one I tried below code, it's printing as it is table format.



    <?php

    namespace ABCSolutionsAvailableStoreObserver;

    use MagentoCatalogApiProductRepositoryInterface;
    use MagentoStoreModelStoreManagerInterface;


    class AfterPlaceOrderObserver implements MagentoFrameworkEventObserverInterface{


    /**
    * Store model manager
    *
    * @var StoreManagerInterface
    */
    protected $storeManager;

    /**
    * @var MagentoFrameworkTranslateInlineStateInterface
    */
    protected $_inlineTranslation;

    /**
    * @var MagentoFrameworkMailTemplateTransportBuilder
    */
    protected $_transportBuilder;

    /**
    * @var MagentoCatalogModelProductFactory
    */
    protected $_productLoader;

    /**
    * @var MagentoCatalogApiProductRepositoryInterface
    */
    protected $productRepository;

    /**
    * @var MagentoSalesModelOrder
    */
    protected $_order;

    /**
    * @var MagentoSalesModelOrderNotifier
    */
    protected $_orderNotifier;

    /**
    * @param MagentoFrameworkTranslateInlineStateInterface $inlineTranslation
    * @param MagentoFrameworkMailTemplateTransportBuilder $transportBuilder
    * @param ProductRepositoryInterface $productRepository
    * @param StoreManagerInterface $storeManager
    * @param MagentoSalesModelOrder $order
    * @param MagentoSalesModelOrderNotifier $orderNotifier
    */
    public function __construct(
    MagentoFrameworkTranslateInlineStateInterface $inlineTranslation,
    MagentoFrameworkMailTemplateTransportBuilder $transportBuilder,
    //MagentoCatalogModelProductFactory $_productLoader
    ProductRepositoryInterface $productRepository,
    StoreManagerInterface $storeManager,
    MagentoSalesModelOrder $order,
    MagentoSalesModelOrderNotifier $orderNotifier
    ){
    $this->_inlineTranslation = $inlineTranslation;
    $this->_transportBuilder = $transportBuilder;
    //$this->_productLoader = $_productLoader;
    $this->productRepository = $productRepository;
    $this->storeManager = $storeManager;
    $this->_order = $order;
    $this->_orderNotifier = $orderNotifier;
    }

    /**
    * @param MagentoFrameworkEventObserver $observer
    */
    public function execute(MagentoFrameworkEventObserver $observer)
    {
    /* @var $order MagentoSalesModelOrder */
    $order = $observer->getEvent()->getOrder();

    $templateOptions = array('area' => MagentoFrameworkAppArea::AREA_FRONTEND,'store' => 1);
    $mediaPath = $this->storeManager->getStore(1)->getBaseURL(MagentoFrameworkUrlInterface::URL_TYPE_MEDIA) . 'catalog/product';

    $table = "";
    $table .= "<table>";
    $table .= "<thead>";
    $table .= "<tr>";
    $table .= "<th>";
    $table .= "Product Image";
    $table .= "</th>";
    $table .= "<th>";
    $table .= "Product Name";
    $table .= "</th>";
    $table .= "<th>";
    $table .= "Qty.";
    $table .= "</th>";
    $table .= "<th>";
    $table .= "Price";
    $table .= "</th>";
    $table .= "</tr>";
    $table .= "</thead>";
    //start foreach for items
    foreach($order->getAllItems() as $_items){

    $_product = $this->productRepository->getById($_items->getProductId());
    $imageThumbNail = $mediaPath . $_product->getThumbnail();
    $pSKU=$_product->getSku();
    $productName = $_product->getName();
    $QtyOrdered = $_items->getQtyOrdered();
    $pPrice = $_product->getPrice();
    $CAField = $_product->getCustomAttributeField();

    $table .= "<tr>";
    $table .= "<td style='width: 120px;text-align: center;'>";
    $table .= "<img src='$imageThumbNail' title='$productName' style='width: 70px;height: 70px;' />";
    $table .= "</td>";
    $table .= "<td style='width: 200px;'>";
    $table .= "<table>";
    $table .= "<tr>";
    $table .= "<td>";
    $table .= "<span style='color: Blue;'>SKU: </span>";
    $table .= "</td>";
    $table .= "<td>";
    $table .= " <span>$pSKU</span>";
    $table .= "</td>";
    $table .= "</tr>";
    $table .= "<tr>";
    $table .= "<td>";
    $table .= "<span style='color: Blue;'>Cust. Attr. Field: </span>";
    $table .= "</td>";
    $table .= "<td>";
    $table .= "<span style='font-size: 14px;'>$CAField</span>";
    $table .= "</td>";
    $table .= "</tr>";
    $table .= "</table>";
    $table .= "</td>";
    $table .= "<td style='width: 50px;text-align: center;'>";
    $table .= "<span>$QtyOrdered</span>";
    $table .= "</td>";
    $table .= "<td style='text-align: center;'>";
    $table .= "<span>$pPrice</span>";
    $table .= "</td>";
    $table .= "</tr>";

    }

    //end foreach
    $table .= "</table>";

    $mass = $table;

    $templateVars = array(
    'store' => 1,
    'orderNumber' => $order->getIncrementId(),
    'customer_name' => $order->getCustomerName(),
    'message' => $mass
    );

    $from = array(
    'email' => 'info@gmail.com',
    'name' => 'Customer Care'
    );

    $to = "abc@gmail.com";
    try {
    $this->_inlineTranslation->suspend();
    $to = array($to);
    $transport = $this->_transportBuilder->setTemplateIdentifier('custom_email_template')
    ->setTemplateOptions($templateOptions)
    ->setTemplateVars($templateVars)
    ->setFrom($from)
    ->addTo($to)
    ->getTransport();
    $transport->sendMessage();
    $this->_inlineTranslation->resume();
    }
    catch (Exception $e)
    {
    echo $e->getMessage();
    }
    }

    }


    It's printing table format, like below image.



    enter image description here



    Please suggest us to send the email of order email copy with extra attributes?









    share

























      0












      0








      0








      I am trying to send an order email confirmation with adding extra attributes values to Admin, But it's not working for me.



      Here I have 2 Email templates.



      1) It's a default email template



      2) Customized email template



      First one is the default, and it will send Magento by default.



      For the second one I tried below code, it's printing as it is table format.



      <?php

      namespace ABCSolutionsAvailableStoreObserver;

      use MagentoCatalogApiProductRepositoryInterface;
      use MagentoStoreModelStoreManagerInterface;


      class AfterPlaceOrderObserver implements MagentoFrameworkEventObserverInterface{


      /**
      * Store model manager
      *
      * @var StoreManagerInterface
      */
      protected $storeManager;

      /**
      * @var MagentoFrameworkTranslateInlineStateInterface
      */
      protected $_inlineTranslation;

      /**
      * @var MagentoFrameworkMailTemplateTransportBuilder
      */
      protected $_transportBuilder;

      /**
      * @var MagentoCatalogModelProductFactory
      */
      protected $_productLoader;

      /**
      * @var MagentoCatalogApiProductRepositoryInterface
      */
      protected $productRepository;

      /**
      * @var MagentoSalesModelOrder
      */
      protected $_order;

      /**
      * @var MagentoSalesModelOrderNotifier
      */
      protected $_orderNotifier;

      /**
      * @param MagentoFrameworkTranslateInlineStateInterface $inlineTranslation
      * @param MagentoFrameworkMailTemplateTransportBuilder $transportBuilder
      * @param ProductRepositoryInterface $productRepository
      * @param StoreManagerInterface $storeManager
      * @param MagentoSalesModelOrder $order
      * @param MagentoSalesModelOrderNotifier $orderNotifier
      */
      public function __construct(
      MagentoFrameworkTranslateInlineStateInterface $inlineTranslation,
      MagentoFrameworkMailTemplateTransportBuilder $transportBuilder,
      //MagentoCatalogModelProductFactory $_productLoader
      ProductRepositoryInterface $productRepository,
      StoreManagerInterface $storeManager,
      MagentoSalesModelOrder $order,
      MagentoSalesModelOrderNotifier $orderNotifier
      ){
      $this->_inlineTranslation = $inlineTranslation;
      $this->_transportBuilder = $transportBuilder;
      //$this->_productLoader = $_productLoader;
      $this->productRepository = $productRepository;
      $this->storeManager = $storeManager;
      $this->_order = $order;
      $this->_orderNotifier = $orderNotifier;
      }

      /**
      * @param MagentoFrameworkEventObserver $observer
      */
      public function execute(MagentoFrameworkEventObserver $observer)
      {
      /* @var $order MagentoSalesModelOrder */
      $order = $observer->getEvent()->getOrder();

      $templateOptions = array('area' => MagentoFrameworkAppArea::AREA_FRONTEND,'store' => 1);
      $mediaPath = $this->storeManager->getStore(1)->getBaseURL(MagentoFrameworkUrlInterface::URL_TYPE_MEDIA) . 'catalog/product';

      $table = "";
      $table .= "<table>";
      $table .= "<thead>";
      $table .= "<tr>";
      $table .= "<th>";
      $table .= "Product Image";
      $table .= "</th>";
      $table .= "<th>";
      $table .= "Product Name";
      $table .= "</th>";
      $table .= "<th>";
      $table .= "Qty.";
      $table .= "</th>";
      $table .= "<th>";
      $table .= "Price";
      $table .= "</th>";
      $table .= "</tr>";
      $table .= "</thead>";
      //start foreach for items
      foreach($order->getAllItems() as $_items){

      $_product = $this->productRepository->getById($_items->getProductId());
      $imageThumbNail = $mediaPath . $_product->getThumbnail();
      $pSKU=$_product->getSku();
      $productName = $_product->getName();
      $QtyOrdered = $_items->getQtyOrdered();
      $pPrice = $_product->getPrice();
      $CAField = $_product->getCustomAttributeField();

      $table .= "<tr>";
      $table .= "<td style='width: 120px;text-align: center;'>";
      $table .= "<img src='$imageThumbNail' title='$productName' style='width: 70px;height: 70px;' />";
      $table .= "</td>";
      $table .= "<td style='width: 200px;'>";
      $table .= "<table>";
      $table .= "<tr>";
      $table .= "<td>";
      $table .= "<span style='color: Blue;'>SKU: </span>";
      $table .= "</td>";
      $table .= "<td>";
      $table .= " <span>$pSKU</span>";
      $table .= "</td>";
      $table .= "</tr>";
      $table .= "<tr>";
      $table .= "<td>";
      $table .= "<span style='color: Blue;'>Cust. Attr. Field: </span>";
      $table .= "</td>";
      $table .= "<td>";
      $table .= "<span style='font-size: 14px;'>$CAField</span>";
      $table .= "</td>";
      $table .= "</tr>";
      $table .= "</table>";
      $table .= "</td>";
      $table .= "<td style='width: 50px;text-align: center;'>";
      $table .= "<span>$QtyOrdered</span>";
      $table .= "</td>";
      $table .= "<td style='text-align: center;'>";
      $table .= "<span>$pPrice</span>";
      $table .= "</td>";
      $table .= "</tr>";

      }

      //end foreach
      $table .= "</table>";

      $mass = $table;

      $templateVars = array(
      'store' => 1,
      'orderNumber' => $order->getIncrementId(),
      'customer_name' => $order->getCustomerName(),
      'message' => $mass
      );

      $from = array(
      'email' => 'info@gmail.com',
      'name' => 'Customer Care'
      );

      $to = "abc@gmail.com";
      try {
      $this->_inlineTranslation->suspend();
      $to = array($to);
      $transport = $this->_transportBuilder->setTemplateIdentifier('custom_email_template')
      ->setTemplateOptions($templateOptions)
      ->setTemplateVars($templateVars)
      ->setFrom($from)
      ->addTo($to)
      ->getTransport();
      $transport->sendMessage();
      $this->_inlineTranslation->resume();
      }
      catch (Exception $e)
      {
      echo $e->getMessage();
      }
      }

      }


      It's printing table format, like below image.



      enter image description here



      Please suggest us to send the email of order email copy with extra attributes?









      share














      I am trying to send an order email confirmation with adding extra attributes values to Admin, But it's not working for me.



      Here I have 2 Email templates.



      1) It's a default email template



      2) Customized email template



      First one is the default, and it will send Magento by default.



      For the second one I tried below code, it's printing as it is table format.



      <?php

      namespace ABCSolutionsAvailableStoreObserver;

      use MagentoCatalogApiProductRepositoryInterface;
      use MagentoStoreModelStoreManagerInterface;


      class AfterPlaceOrderObserver implements MagentoFrameworkEventObserverInterface{


      /**
      * Store model manager
      *
      * @var StoreManagerInterface
      */
      protected $storeManager;

      /**
      * @var MagentoFrameworkTranslateInlineStateInterface
      */
      protected $_inlineTranslation;

      /**
      * @var MagentoFrameworkMailTemplateTransportBuilder
      */
      protected $_transportBuilder;

      /**
      * @var MagentoCatalogModelProductFactory
      */
      protected $_productLoader;

      /**
      * @var MagentoCatalogApiProductRepositoryInterface
      */
      protected $productRepository;

      /**
      * @var MagentoSalesModelOrder
      */
      protected $_order;

      /**
      * @var MagentoSalesModelOrderNotifier
      */
      protected $_orderNotifier;

      /**
      * @param MagentoFrameworkTranslateInlineStateInterface $inlineTranslation
      * @param MagentoFrameworkMailTemplateTransportBuilder $transportBuilder
      * @param ProductRepositoryInterface $productRepository
      * @param StoreManagerInterface $storeManager
      * @param MagentoSalesModelOrder $order
      * @param MagentoSalesModelOrderNotifier $orderNotifier
      */
      public function __construct(
      MagentoFrameworkTranslateInlineStateInterface $inlineTranslation,
      MagentoFrameworkMailTemplateTransportBuilder $transportBuilder,
      //MagentoCatalogModelProductFactory $_productLoader
      ProductRepositoryInterface $productRepository,
      StoreManagerInterface $storeManager,
      MagentoSalesModelOrder $order,
      MagentoSalesModelOrderNotifier $orderNotifier
      ){
      $this->_inlineTranslation = $inlineTranslation;
      $this->_transportBuilder = $transportBuilder;
      //$this->_productLoader = $_productLoader;
      $this->productRepository = $productRepository;
      $this->storeManager = $storeManager;
      $this->_order = $order;
      $this->_orderNotifier = $orderNotifier;
      }

      /**
      * @param MagentoFrameworkEventObserver $observer
      */
      public function execute(MagentoFrameworkEventObserver $observer)
      {
      /* @var $order MagentoSalesModelOrder */
      $order = $observer->getEvent()->getOrder();

      $templateOptions = array('area' => MagentoFrameworkAppArea::AREA_FRONTEND,'store' => 1);
      $mediaPath = $this->storeManager->getStore(1)->getBaseURL(MagentoFrameworkUrlInterface::URL_TYPE_MEDIA) . 'catalog/product';

      $table = "";
      $table .= "<table>";
      $table .= "<thead>";
      $table .= "<tr>";
      $table .= "<th>";
      $table .= "Product Image";
      $table .= "</th>";
      $table .= "<th>";
      $table .= "Product Name";
      $table .= "</th>";
      $table .= "<th>";
      $table .= "Qty.";
      $table .= "</th>";
      $table .= "<th>";
      $table .= "Price";
      $table .= "</th>";
      $table .= "</tr>";
      $table .= "</thead>";
      //start foreach for items
      foreach($order->getAllItems() as $_items){

      $_product = $this->productRepository->getById($_items->getProductId());
      $imageThumbNail = $mediaPath . $_product->getThumbnail();
      $pSKU=$_product->getSku();
      $productName = $_product->getName();
      $QtyOrdered = $_items->getQtyOrdered();
      $pPrice = $_product->getPrice();
      $CAField = $_product->getCustomAttributeField();

      $table .= "<tr>";
      $table .= "<td style='width: 120px;text-align: center;'>";
      $table .= "<img src='$imageThumbNail' title='$productName' style='width: 70px;height: 70px;' />";
      $table .= "</td>";
      $table .= "<td style='width: 200px;'>";
      $table .= "<table>";
      $table .= "<tr>";
      $table .= "<td>";
      $table .= "<span style='color: Blue;'>SKU: </span>";
      $table .= "</td>";
      $table .= "<td>";
      $table .= " <span>$pSKU</span>";
      $table .= "</td>";
      $table .= "</tr>";
      $table .= "<tr>";
      $table .= "<td>";
      $table .= "<span style='color: Blue;'>Cust. Attr. Field: </span>";
      $table .= "</td>";
      $table .= "<td>";
      $table .= "<span style='font-size: 14px;'>$CAField</span>";
      $table .= "</td>";
      $table .= "</tr>";
      $table .= "</table>";
      $table .= "</td>";
      $table .= "<td style='width: 50px;text-align: center;'>";
      $table .= "<span>$QtyOrdered</span>";
      $table .= "</td>";
      $table .= "<td style='text-align: center;'>";
      $table .= "<span>$pPrice</span>";
      $table .= "</td>";
      $table .= "</tr>";

      }

      //end foreach
      $table .= "</table>";

      $mass = $table;

      $templateVars = array(
      'store' => 1,
      'orderNumber' => $order->getIncrementId(),
      'customer_name' => $order->getCustomerName(),
      'message' => $mass
      );

      $from = array(
      'email' => 'info@gmail.com',
      'name' => 'Customer Care'
      );

      $to = "abc@gmail.com";
      try {
      $this->_inlineTranslation->suspend();
      $to = array($to);
      $transport = $this->_transportBuilder->setTemplateIdentifier('custom_email_template')
      ->setTemplateOptions($templateOptions)
      ->setTemplateVars($templateVars)
      ->setFrom($from)
      ->addTo($to)
      ->getTransport();
      $transport->sendMessage();
      $this->_inlineTranslation->resume();
      }
      catch (Exception $e)
      {
      echo $e->getMessage();
      }
      }

      }


      It's printing table format, like below image.



      enter image description here



      Please suggest us to send the email of order email copy with extra attributes?







      magento2 sales-order email-templates order-email





      share












      share










      share



      share










      asked 1 min ago









      BojjaiahBojjaiah

      2,4232468




      2,4232468






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f260101%2fsending-order-confirmation-email-template-in-magento-2%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f260101%2fsending-order-confirmation-email-template-in-magento-2%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Polycentropodidae

          Magento 2 Error message: Invalid state change requested

          Paulmy