(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{326:function(e,t,a){"use strict";a.r(t);var s=a(13),r=Object(s.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"email-templates"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#email-templates"}},[e._v("#")]),e._v(" Email Templates "),t("small")]),e._v(" "),t("blockquote",[t("p",[e._v("Templates can be used to add custom templates for your emails, or to override the system emails used for things like\nresetting a password or inviting a user.")])]),e._v(" "),t("h2",{attrs:{id:"_1-create-a-template-file"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#_1-create-a-template-file"}},[e._v("#")]),e._v(" 1. Create a template file")]),e._v(" "),t("p",[e._v("Custom email templates are stored in the "),t("code",[e._v("templates")]),e._v(" folder in your extensions folder. Every template is a\n"),t("a",{attrs:{href:"https://liquidjs.com",target:"_blank",rel:"noopener noreferrer"}},[t("code",[e._v("liquid")]),t("OutboundLink")],1),e._v(" file that can render whatever you want!")]),e._v(" "),t("div",{staticClass:"language- extra-class"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[e._v("/extensions/templates/<template-name>.liquid\n")])])]),t("p",[e._v("To replace a system template with your own, simply name it "),t("code",[e._v("password-reset")]),e._v(" or "),t("code",[e._v("user-invitation")]),e._v(" for the password reset\nor user invite emails respectively.")]),e._v(" "),t("div",{staticClass:"custom-block tip"},[t("p",{staticClass:"custom-block-title"},[e._v("Variables")]),e._v(" "),t("p",[e._v("When overriding the default email templates, make sure to include the "),t("code",[e._v("url")]),e._v(" variable somewhere. A password reset email\nwouldn't be that useful without the link to go reset your password!")])])])}),[],!1,null,null,null);t.default=r.exports}}]);