File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,23 @@ images inside the HTML contents::
256
256
->html('<img src="cid:logo"> ... <img src="cid:footer-signature"> ...')
257
257
;
258
258
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
+
259
276
.. _mailer-twig :
260
277
261
278
Twig: HTML & CSS
You can’t perform that action at this time.
0 commit comments