<commit_before>.. index::
   single: E-Mails

E-Mails
=======

Sylius is sending various e-mails and this chapter is a reference about all of them. Continue reading to learn what e-mails are sent, when and how to customize the templates.

Customer Welcome E-Mail
-----------------------

Every time new customer registers via registration form or checkout, this e-mail is sent to him.

.. code-block:: text

    SyliusWebBundle:Frontend/Email:customerWelcome.html.twig

Order Confirmation
------------------

This e-mail is sent when order is paid. Template name is:

.. code-block:: text

    SyliusWebBundle:Frontend/Email:orderConfirmation.html.twig

Order Comment
-------------

In the backend, you can comment orders and optionally notify the customer, this template is used:

.. code-block:: text

    SyliusWebBundle:Frontend/Email:orderComment.html.twig

Final Thoughts
--------------

...

Learn more
----------

* ...<commit_msg>Add available variables docs<commit_after>.. index::
   single: E-Mails

E-Mails
=======

Sylius is sending various e-mails and this chapter is a reference about all of them. Continue reading to learn what e-mails are sent, when and how to customize the templates.

Customer Welcome E-Mail
-----------------------

Every time new customer registers via registration form or checkout, this e-mail is sent to him.

.. code-block:: text

    SyliusWebBundle:Frontend/Email:customerWelcome.html.twig

You also have the following parameters available:

user
    Instance of the user entity

Order Confirmation
------------------

This e-mail is sent when order is paid. Template name is:

.. code-block:: text

    SyliusWebBundle:Frontend/Email:orderConfirmation.html.twig

You also have the following parameters available:

order
    Instance of the user order
order.user
    Customer
order.shippingAddress
    Shipping address
order.billingAddress
    Billing address
order.items
    Collection of order items

Order Comment
-------------

In the backend, you can comment orders and optionally notify the customer, this template is used:

.. code-block:: text

    SyliusWebBundle:Frontend/Email:orderComment.html.twig

You also have the following parameters available:

comment:
    Comment instance
order
    Instance of the user order
order.user
    Customer
order.shippingAddress
    Shipping address
order.billingAddress
    Billing address
order.items
    Collection of order items

Final Thoughts
--------------

...

Learn more
----------

* ...
{'fraction_non_alphanumeric': 0.12289156626506025, 'fraction_numerical': 0.0, 'mean_word_length': 2.8441358024691357, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1302861', 'n_tokens_mistral': 688, 'n_tokens_neox': 660, 'n_words': 267}