8000 Mentioned the mailer debugging options by javiereguiluz · Pull Request #12341 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Mentioned the mailer debugging options #12341

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
Sep 25, 2019
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
17 changes: 17 additions & 0 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,23 @@ images inside the HTML contents::
->html('<img src="cid:logo"> ... <img src="cid:footer-signature"> ...')
;

Debugging Emails
----------------

The :class:`Symfony\\Component\\Mailer\\SentMessa 65E6 ge` object returned by the
``send()`` method of the :class:`Symfony\\Component\\Mailer\\Transport\\TransportInterface`
provides access to the original message (``getOriginalMessage()``) and to some
debug information (``getDebug()``) such as the HTTP calls done by the HTTP
transports, which is useful to debug errors.

The exceptions related to mailer transports (those which implement
:class:`Symfony\\Component\\Mailer\\Exception\\TransportException`) also provide
this debug information via the ``getDebug()`` method.

.. versionadded:: 4.4

The ``getDebug()`` methods were introduced in Symfony 4.4.

.. _mailer-twig:

Twig: HTML & CSS
Expand Down
0