Skip to main content
added 60 characters in body
Source Link
Ravindrasinh Zala
  • 2.1k
  • 3
  • 16
  • 47

createSend invoice email to custom mail address in magento 2 but create custom email template but face this issue in magento 2.4.6

app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template.xml

<?xml version="1.0"?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
       <template id="invoice_email_template" label="Invoice Email Template" file="invoice_email_template.html" type="html" module="YourVendor_YourModule" area="frontend"/>
</config>

invoice_email_template.html

    {{template config_path="design/email/header_template"}}
     <table>
        <tr class="email-intro">
          <td>
           Email: {{var email}}
          </td>
           <td>
           Name: {{var name}}
          </td>
        </tr>
    </table>

   {{template config_path="design/email/footer_template"}}

magento default use html Invoice for your Main Website Store order

Invoice_new.html but not working any suggestion for that

advance thanks for help

create custom email template but face this issue in magento 2.4.6

app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template.xml

<?xml version="1.0"?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
       <template id="invoice_email_template" label="Invoice Email Template" file="invoice_email_template.html" type="html" module="YourVendor_YourModule" area="frontend"/>
</config>

invoice_email_template.html

    {{template config_path="design/email/header_template"}}
     <table>
        <tr class="email-intro">
          <td>
           Email: {{var email}}
          </td>
           <td>
           Name: {{var name}}
          </td>
        </tr>
    </table>

   {{template config_path="design/email/footer_template"}}

magento default use html Invoice for your Main Website Store order

Invoice_new.html but not working any suggestion for that

advance thanks for help

Send invoice email to custom mail address in magento 2 but create custom email template but face this issue in magento 2.4.6

app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template.xml

<?xml version="1.0"?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
       <template id="invoice_email_template" label="Invoice Email Template" file="invoice_email_template.html" type="html" module="YourVendor_YourModule" area="frontend"/>
</config>

invoice_email_template.html

    {{template config_path="design/email/header_template"}}
     <table>
        <tr class="email-intro">
          <td>
           Email: {{var email}}
          </td>
           <td>
           Name: {{var name}}
          </td>
        </tr>
    </table>

   {{template config_path="design/email/footer_template"}}

magento default use html Invoice for your Main Website Store order

Invoice_new.html but not working any suggestion for that

advance thanks for help

added 327 characters in body
Source Link
Ravindrasinh Zala
  • 2.1k
  • 3
  • 16
  • 47

create custom email template but face this issue in magento 2.4.6

app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template.xml

<?xml version="1.0"?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
       <template id="invoice_email_template" label="Invoice Email Template" file="invoice_email_template.html" type="html" module="YourVendor_YourModule" area="frontend"/>
</config>

invoice_email_template.html

    {{template config_path="design/email/header_template"}}
     <table>
        <tr class="email-intro">
          <td>
           Email: {{var email}}
          </td>
           <td>
           Name: {{var name}}
          </td>
        </tr>
    </table>

   {{template config_path="design/email/footer_template"}}

magento default use html Invoice for your Main Website Store order

Invoice_new.html but not working any suggestion for that

advance thanks for help

create custom email template but face this issue in magento 2.4.6

app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template.xml

<?xml version="1.0"?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
       <template id="invoice_email_template" label="Invoice Email Template" file="invoice_email_template.html" type="html" module="YourVendor_YourModule" area="frontend"/>
</config>

invoice_email_template.html

magento default use html Invoice for your Main Website Store order

Invoice_new.html but not working any suggestion for that

advance thanks for help

create custom email template but face this issue in magento 2.4.6

app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template.xml

<?xml version="1.0"?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
       <template id="invoice_email_template" label="Invoice Email Template" file="invoice_email_template.html" type="html" module="YourVendor_YourModule" area="frontend"/>
</config>

invoice_email_template.html

    {{template config_path="design/email/header_template"}}
     <table>
        <tr class="email-intro">
          <td>
           Email: {{var email}}
          </td>
           <td>
           Name: {{var name}}
          </td>
        </tr>
    </table>

   {{template config_path="design/email/footer_template"}}

magento default use html Invoice for your Main Website Store order

Invoice_new.html but not working any suggestion for that

advance thanks for help

Source Link
Ravindrasinh Zala
  • 2.1k
  • 3
  • 16
  • 47

error filtering templat: Template file 'header.html' is not found in mail in magento 2.4.6

create custom email template but face this issue in magento 2.4.6

app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template.xml

<?xml version="1.0"?>
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
       <template id="invoice_email_template" label="Invoice Email Template" file="invoice_email_template.html" type="html" module="YourVendor_YourModule" area="frontend"/>
</config>

invoice_email_template.html

magento default use html Invoice for your Main Website Store order

Invoice_new.html but not working any suggestion for that

advance thanks for help