I created module for email header
Block: INWEmailOverrideBlockEmailOverride // information about which image show
template: extraheader.phtml // contain a image tag
I put this in custom email template
{{block class=”INWEmailOverrideBlockEmailOverride” name=”extraheader_header” orderId=$myvar1 template=”INW_EmailOverride::extraheader.phtml”}}
when I am sending email from 2 places
-
Vendor1_Module1 Observer send email: email sent, working fine no problem extraheader working fine
-
Vendor2_Module2 Controller send email: email sent but extraheader part missing and showing error in log
main.CRITICAL: Invalid template file: ‘INW_EmailOverride::extraheader.phtml’ in module: ‘INW_EmailOverride’ block’s name: ’emailoverride_0′ [] []