Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add e-mails to docs

Anna Siwik0c1f76cc73fe
diff --git a/docs/customization.rst b/docs/customization.rst
index 6ab98bd042..6add8009ec 100644
--- a/docs/customization.rst
+++ b/docs/customization.rst
@@ -6,6 +6,7 @@ Customizing Saleor
customization/docker
customization/templates
+ customization/emails
customization/frontend
customization/backend
customization/tests
diff --git a/docs/customization/emails.rst b/docs/customization/emails.rst
new file mode 100644
index 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