10000 Mentioned the mailer debugging options · symfony/symfony-docs@58716c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58716c6

Browse files
committed
Mentioned the mailer debugging options
1 parent ea6de0a commit 58716c6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

mailer.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,23 @@ images inside the HTML contents::
256256
->html('<img src="cid:logo"> ... <img src="cid:footer-signature"> ...')
257257
;
258258

259+
Debugging Emails
260+
----------------
261+
262+
The :class:`Symfony\\Component\\Mailer\\SentMessage` object returned by the
263+
``send()`` method of the :class:`Symfony\\Component\\Mailer\\Transport\\TransportInterface`
264+
provides access to the original message (``getOriginalMessage()``) and to some
265+
debug information (``getDebug()``) such as the HTTP calls done by the HTTP
266+
transports, which is useful to debug errors.
267+
268+
The exceptions related to mailer transports (those which implement
269+
:class:`Symfony\\Component\\Mailer\\Exception\\TransportException`) also provide
270+
this debug information via the ``getDebug()`` method.
271+
272+
.. versionadded:: 4.4
273+
274+
The ``getDebug()`` methods were introduced in Symfony 4.4.
275+
259276
.. _mailer-twig:
260277

261278
Twig: HTML & CSS

0 commit comments

Comments
 (0)
0