{"id":38671,"date":"2016-01-14T19:37:59","date_gmt":"2016-01-14T19:37:59","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=38671"},"modified":"2021-07-16T11:08:45","modified_gmt":"2021-07-16T11:08:45","slug":"magento2-create-custom-email-templates","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/","title":{"rendered":"Magento2 &#8211; Create and Use Custom Email Templates"},"content":{"rendered":"\n<p>Here will see how to create Email Templates in magento2.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Email Templates in Magento2<\/h2>\n\n\n\n<p>First create &#8217;email_templates.xml&#8217; file in folder &#8216;Webkul\/Hello\/etc&#8217;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:xml\">&lt;?xml version=\"1.0\"?&gt;\n&lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:module:Magento_Email:etc\/email_templates.xsd\"&gt;\n\t&lt;template id=\"hello_template\" label=\"Hello World\" file=\"hello.html\" type=\"html\" module=\"Webkul_Hello\" area=\"frontend\"\/&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p>Now create email template file &#8216;hello.html&#8217; in folder &#8216;Webkul\/Hello\/view\/frontend\/email&#8217;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:xml\">&lt;!--@subject Email Subject @--&gt;\n&lt;!--@vars\n{\"store url=\\\"\\\"\":\"Store Url\",\n\"skin url=\\\"images\/logo_email.gif\\\" _area='frontend'\":\"Email Logo Image\"}\n@--&gt;\n&lt;!--@styles\nbody,td { color:#2f2f2f; font:11px\/1.35em Verdana, Arial, Helvetica, sans-serif; }\n@--&gt;\n{{template config_path=\"design\/email\/header_template\"}}\n\t\t&lt;table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\"&gt;\n\t\t\t&lt;tr&gt;\n\t\t\t\t&lt;td align=\"center\" valign=\"top\" style=\"padding:20px 0 20px 0\"&gt;\n\t\t\t\t\t&lt;table bgcolor=\"#FFFFFF\" cellspacing=\"0\" cellpadding=\"10\" border=\"0\" width=\"650\" style=\"border:1px solid #E0E0E0;\"&gt;\n\t\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t\t&lt;td valign=\"top\"&gt;\n\t\t\t\t\t\t\t\t&lt;h1 style=\"font-size:22px;font-weight:normal;line-height:22px;margin:0 0 11px 0;\"&gt;{{trans \"Hello\"}},&lt;\/h1&gt;\n\t\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t\t&lt;td&gt;\n\t\t\t\t\t\t\t\t&lt;table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"650\"&gt;\n\t\t\t\t\t\t\t\t\t&lt;tbody&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;td colspan=\"2\" valign=\"top\" style=\"font-size:12px;padding:7px 9px 9px 9px;border:1px solid #EAEAEA;\"&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t{{var message}}\n\t\t\t\t\t\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t\t\t\t\t\t&lt;\/tbody&gt;\n\t\t\t\t\t\t\t\t&lt;\/table&gt;\n\t\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t\t&lt;td bgcolor=\"#EAEAEA\" align=\"center\" style=\"background:#EAEAEA;text-align:center;\"&gt;\n\t\t\t\t\t\t\t\t&lt;center&gt;\n\t\t\t\t\t\t\t\t\t&lt;p style=\"font-size:12px;margin:0;\"&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;strong&gt;{{trans \"Thank you\"}}&lt;\/strong&gt;\n\t\t\t\t\t\t\t\t\t&lt;\/p&gt;\n\t\t\t\t\t\t\t\t&lt;\/center&gt;\n\t\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t\t&lt;\/table&gt;\n\t\t\t\t&lt;\/td&gt;\n\t\t\t&lt;\/tr&gt;\n\t\t&lt;\/table&gt;\n\t{{template config_path=\"design\/email\/footer_template\"}}<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1183\" height=\"707\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Screenshot_1.png\" alt=\"Email Templates\" class=\"wp-image-39621\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Screenshot_1.png 1183w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Screenshot_1-250x149.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Screenshot_1-300x179.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Screenshot_1-768x459.png 768w\" sizes=\"(max-width: 1183px) 100vw, 1183px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>This is an example of template. you can set your own message body and can send as many as variable as you can.<\/p>\n\n\n\n<p>Now Call this template from where you want to call it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">$templateOptions = array('area' =&gt; \\Magento\\Framework\\App\\Area::AREA_FRONTEND, 'store' =&gt; $this-&gt;storeManager-&gt;getStore()-&gt;getId());\n$templateVars = array(\n\t\t\t\t\t'store' =&gt; $this-&gt;storeManager-&gt;getStore(),\n\t\t\t\t\t'customer_name' =&gt; 'John Doe',\n\t\t\t\t\t'message'\t=&gt; 'Hello World!!.'\n\t\t\t\t);\n$from = array('email' =&gt; \"test@webkul.com\", 'name' =&gt; 'Name of Sender');\n$this-&gt;inlineTranslation-&gt;suspend();\n$to = array('john@webkul.com');\n$transport = $this-&gt;_transportBuilder-&gt;setTemplateIdentifier('hello_template')\n\t\t\t\t-&gt;setTemplateOptions($templateOptions)\n\t\t\t\t-&gt;setTemplateVars($templateVars)\n\t\t\t\t-&gt;setFrom($from)\n\t\t\t\t-&gt;addTo($to)\n\t\t\t\t-&gt;getTransport();\n$transport-&gt;sendMessage();\n$this-&gt;inlineTranslation-&gt;resume();<\/pre>\n\n\n\n<p>$this-&gt;storeManager is instance of &#8216;Magento\\Store\\Model\\StoreManagerInterface&#8217;<\/p>\n\n\n\n<p>$this-&gt;_transportBuilder is instance of &#8216;Magento\\Framework\\Mail\\Template\\TransportBuilder&#8217;<\/p>\n\n\n\n<p>$this-&gt;inlineTranslation is instance of &#8216;Magento\\Framework\\Translate\\Inline\\StateInterface&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here will see how to create Email Templates in magento2. Email Templates in Magento2 First create &#8217;email_templates.xml&#8217; file in folder &#8216;Webkul\/Hello\/etc&#8217;. &lt;?xml version=&#8221;1.0&#8243;?&gt; &lt;config xmlns:xsi=&#8221;http:\/\/www.w3.org\/2001\/XMLSchema-instance&#8221; xsi:noNamespaceSchemaLocation=&#8221;urn:magento:module:Magento_Email:etc\/email_templates.xsd&#8221;&gt; &lt;template id=&#8221;hello_template&#8221; label=&#8221;Hello World&#8221; file=&#8221;hello.html&#8221; type=&#8221;html&#8221; module=&#8221;Webkul_Hello&#8221; area=&#8221;frontend&#8221;\/&gt; &lt;\/config&gt; Now create email template file &#8216;hello.html&#8217; in folder &#8216;Webkul\/Hello\/view\/frontend\/email&#8217;. &lt;!&#8211;@subject Email Subject @&#8211;&gt; &lt;!&#8211;@vars {&#8220;store url=\\&#8221;\\&#8221;&#8221;:&#8221;Store Url&#8221;, &#8220;skin url=\\&#8221;images\/logo_email.gif\\&#8221; _area=&#8217;frontend'&#8221;:&#8221;Email <a href=\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":21,"featured_media":39266,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[2678,2070],"class_list":["post-38671","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento2","tag-custom-email","tag-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento2 - Create and Use Custom Email Templates - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Magento2 - Create and Use Custom Email Templates, Use Custom Email Templates Magento2, Create Email Templates in Magento2\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento2 - Create and Use Custom Email Templates - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Magento2 - Create and Use Custom Email Templates, Use Custom Email Templates Magento2, Create Email Templates in Magento2\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rahul0989\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-14T19:37:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-16T11:08:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rahul Mahto\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rahul Mahto\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/\"},\"author\":{\"name\":\"Rahul Mahto\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f\"},\"headline\":\"Magento2 &#8211; Create and Use Custom Email Templates\",\"datePublished\":\"2016-01-14T19:37:59+00:00\",\"dateModified\":\"2021-07-16T11:08:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/\"},\"wordCount\":113,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet-2.png\",\"keywords\":[\"Custom Email\",\"Magento2\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/\",\"name\":\"Magento2 - Create and Use Custom Email Templates - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet-2.png\",\"datePublished\":\"2016-01-14T19:37:59+00:00\",\"dateModified\":\"2021-07-16T11:08:45+00:00\",\"description\":\"Magento2 - Create and Use Custom Email Templates, Use Custom Email Templates Magento2, Create Email Templates in Magento2\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet-2.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet-2.png\",\"width\":825,\"height\":260,\"caption\":\"Custom Price\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento2 &#8211; Create and Use Custom Email Templates\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f\",\"name\":\"Rahul Mahto\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Rahul Mahto\"},\"sameAs\":[\"http:\/\/webkul.com\",\"https:\/\/www.facebook.com\/rahul0989\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/rahul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento2 - Create and Use Custom Email Templates - Webkul Blog","description":"Magento2 - Create and Use Custom Email Templates, Use Custom Email Templates Magento2, Create Email Templates in Magento2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/","og_locale":"en_US","og_type":"article","og_title":"Magento2 - Create and Use Custom Email Templates - Webkul Blog","og_description":"Magento2 - Create and Use Custom Email Templates, Use Custom Email Templates Magento2, Create Email Templates in Magento2","og_url":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_author":"https:\/\/www.facebook.com\/rahul0989","article_published_time":"2016-01-14T19:37:59+00:00","article_modified_time":"2021-07-16T11:08:45+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet-2.png","type":"image\/png"}],"author":"Rahul Mahto","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Rahul Mahto","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/"},"author":{"name":"Rahul Mahto","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f"},"headline":"Magento2 &#8211; Create and Use Custom Email Templates","datePublished":"2016-01-14T19:37:59+00:00","dateModified":"2021-07-16T11:08:45+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/"},"wordCount":113,"commentCount":7,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet-2.png","keywords":["Custom Email","Magento2"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/","url":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/","name":"Magento2 - Create and Use Custom Email Templates - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet-2.png","datePublished":"2016-01-14T19:37:59+00:00","dateModified":"2021-07-16T11:08:45+00:00","description":"Magento2 - Create and Use Custom Email Templates, Use Custom Email Templates Magento2, Create Email Templates in Magento2","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet-2.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/01\/Magneto-Code-Snippet-2.png","width":825,"height":260,"caption":"Custom Price"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento2-create-custom-email-templates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento2 &#8211; Create and Use Custom Email Templates"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f","name":"Rahul Mahto","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Rahul Mahto"},"sameAs":["http:\/\/webkul.com","https:\/\/www.facebook.com\/rahul0989"],"url":"https:\/\/webkul.com\/blog\/author\/rahul\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/38671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=38671"}],"version-history":[{"count":19,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/38671\/revisions"}],"predecessor-version":[{"id":296427,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/38671\/revisions\/296427"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/39266"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=38671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=38671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=38671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}