Skip to content

[Mailer] docs: add tip about listener priority to mailer.rst #17340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,14 @@ is sent::
}
}

.. tip::

The ``MessageEvent`` is also used internally. Depending on your use case
you might need to set a lower or higher priority for your own listener.
For example, when you want to sign the message, make sure to use ``-1``
or lower so the body has already been rendered and will not change after
signing.

Development & Debugging
-----------------------

Expand Down