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 @@ -288,6 +288,23 @@ create an event subscriber to set it automatically::
288
288
}
289
289
}
290
290
291
+ Debugging Emails
292
+ ----------------
293
+
294
+ The :class: `Symfony\\ Component\\ Mailer\\ SentMessage ` object returned by the
295
+ ``send() `` method of the :class: `Symfony\\ Component\\ Mailer\\ Transport\\ TransportInterface `
296
+ provides access to the original message (``getOriginalMessage() ``) and to some
297
+ debug information (``getDebug() ``) such as the HTTP calls done by the HTTP
298
+ transports, which is useful to debug errors.
299
+
300
+ The exceptions related to mailer transports (those which implement
301
+ :class: `Symfony\\ Component\\ Mailer\\ Exception\\ TransportException `) also provide
302
+ this debug information via the ``getDebug() `` method.
303
+
304
+ .. versionadded :: 4.4
305
+
306
+ The ``getDebug() `` methods were introduced in Symfony 4.4.
307
+
291
308
.. _mailer-twig :
292
309
293
310
Twig: HTML & CSS
You can’t perform that action at this time.
0 commit comments