I'm designing template from
"Magento_Sales/templates/email/order_update/statusinfo_guest.phtml"
{{template config_path="design/email/header_template"}} {{trans "%order_status" order_status=$order.getFrontendStatusLabel() |raw}} {{template config_path="design/email/footer_template"}}
and i called in backend like
{{block class='Magento\\Framework\\View\\Element\\Template' area='frontend' template='Magento_Sales::email/order_update/statusinfo_guest.phtml' order=$order}}
When i change sales order status i'm getting email like
What i do wrong? Please let me know
Best Answer
you can call .phtml for email template by doing this: first you have to load .phtml file into html file with following script
Note: Please don't forget to pass correct file path inside template(template='Vendor_Modulename::email/xyz.phtml').