Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add e-mails to docs
Anna Siwik0c1f76cc73fe
diff --git a/docs/customization.rst b/docs/customization.rstindex 6ab98bd042..6add8009ec 100644--- a/docs/customization.rst+++ b/docs/customization.rst@@ -6,6 +6,7 @@ Customizing Saleorcustomization/dockercustomization/templates+ customization/emailscustomization/frontendcustomization/backendcustomization/testsdiff --git a/docs/customization/emails.rst b/docs/customization/emails.rstnew file mode 100644index 0000000000..e07b28c1e8--- /dev/null+++ b/docs/customization/emails.rst@@ -0,0 +1,28 @@+Customizing E-mails+===================+++Sending E-mails+---------------++E-mails are sent with `Django-Templated-Email <https://github.com/vintasoftware/django-templated-email>`_.+++Customizing E-mail Templates+----------------------------++Templates for e-mails live in ``templates/templated_email`` which has two subdirectories. ``source`` directory contains ``*.email`` and ``*.mjml`` files next to each other, grouped by apps' name. Those MJML files are compiled to ``*.html`` and put into ``compiled`` directory.++Plain e-mails in ``*.email`` include HTML version by referencing compiled ``*.html`` files.+++Compiling MJML+--------------++Source e-mails use `MJML <https://mjml.io/>`_ and must be compiled to HTML before use.++To recompile e-mails run:++.. code-block:: bash++ $ npm run build-emails