2

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.? – Sukumar Gorai Feb 21 at 13:27
  • no i have does not create any template for it – Ashish Ramchandani Feb 21 at 13:28
  • if you want i can send my module to you for review – Ashish Ramchandani Feb 21 at 13:28
  • Can you post the code of your module from where you are sending email? Yes please post it. – Sukumar Gorai Feb 21 at 13:29
  • please give my your mail id i will send you my module and review it here whole code is not dcoming – Ashish Ramchandani Feb 21 at 13:29
0

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

  • this blog has a different thing then my module – Ashish Ramchandani Feb 21 at 13:19
  • Can you post your email_templates.xml code here. – Mohit chauhan Feb 21 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> – Ashish Ramchandani Feb 21 at 13:25
0

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.

https://mage2gen.com/load/e4822a13-a700-4372-b5d0-9704cf436f8d?main_version=2

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.