hello everyone I am getting error Email template 'customemail_email_template' is not defined. where to define it enter image description here

  • Did you create any module for wholesale enquiries? If yes then check from where you are sending email with template and create email template with that id. Also can you post you email_templates.xml and the code from where you are sending email.? Feb 21, 2019 at 13:27
  • no i have does not create any template for it Feb 21, 2019 at 13:28
  • if you want i can send my module to you for review Feb 21, 2019 at 13:28
  • Can you post the code of your module from where you are sending email? Yes please post it. Feb 21, 2019 at 13:29
  • please give my your mail id i will send you my module and review it here whole code is not dcoming Feb 21, 2019 at 13:29

2 Answers 2


Follow this blog in your module https://webkul.com/blog/magento2-create-custom-email-templates/

  • this blog has a different thing then my module Feb 21, 2019 at 13:19
  • Can you post your email_templates.xml code here. Feb 21, 2019 at 13:24
  • <?xml version="1.0"?> <config xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd"> <template id="customemail_email_template" label=" Your Custom Label" file="customemail_email_template.html" type="html" module="Magneto_WholesaleApplication" area="frontend"/> </config> Feb 21, 2019 at 13:25

Take a look at this example module which has a configuration option with a custom email template and a basic helper to send the email.


enter image description here

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.