0

I am trying to send an email with dynamic data which is array format.

I have an email template: NameSpace/modulename/view/adminhtml/email/email_template.html

And the phtml file path is: NameSpace/modulename/view/adminhtml/templates/email/template.phtml

Using this {{block type='core/template' area='adminhtml' template='email/replenish.phtml' }}, I am calling phtml file in the email template.

2

Yes i got the solution for phtml file loding into html file with following script
{{block class='Magento\\Framework\\View\\Element\\Template' area='adminhtml' template='Conversion_Replenish::email/replenish.phtml'}}

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.