8000 Tweaks · symfony/symfony-docs@d22a4bd · GitHub
[go: up one dir, main page]

Skip to content

Commit d22a4bd

Browse files
committed
Tweaks
1 parent f5ba10d commit d22a4bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mailer.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,12 +1046,12 @@ Before signing/encrypting messages, make sure to have:
10461046

10471047
.. caution::
10481048

1049-
These features require messages to be rendered,
1050-
which is not always immediate.
1051-
For example, :ref:`templated emails <mailer-twig>` content is generated
1049+
Signing and encrypting messages require their contents to be fully rendered.
1050+
For example, the content of :ref:`templated emails <mailer-twig>` is rendered
10521051
by a :class:`Symfony\\Component\\Mailer\\EventListener\\MessageListener`.
1053-
If you need to sign and/or encrypt such a message, you need to do so in
1054-
a :ref:`MessageEvent <messageevent>` listener with a negative priority.
1052+
So, if you want to sign and/or encrypt such a message, you need to do it in
1053+
a :ref:`MessageEvent <messageevent>` listener run after it (you need to set
1054+
a negative priority to your listener).
10551055

10561056
Signing Messages
10571057
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)
0