Skip to content

Commit 55f00f3

Browse files
committed
minor #17950 [Mailer] add more info for debugging (94noni)
This PR was submitted for the 6.2 branch but it was squashed and merged into the 5.4 branch instead. Discussion ---------- [Mailer] add more info for debugging Hi I did not understand this section of getDebug until I navigate the code and see the swap to do with - MailerInterface and TransportInterface `MailerInterface` $a = $this->mailer->send($email); // $a is null `TransportInterface` $a = $this->mailer->send($email); // $a is SentMessage Commits ------- 82606fe [Mailer] add more info for debugging
2 parents 6192540 + 82606fe commit 55f00f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mailer.rst

+6
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,12 @@ provides access to the original message (``getOriginalMessage()``) and to some
663663
debug information (``getDebug()``) such as the HTTP calls done by the HTTP
664664
transports, which is useful to debug errors.
665665

666+
.. note::
667+
668+
You will need to replace :class:`Symfony\\Component\\Mailer\\MailerInterface`
669+
with :class:`Symfony\\Component\\Mailer\\Transport\\TransportInterface` to have
670+
the message object returned.
671+
666672
.. note::
667673

668674
Some mailer providers change the ``Message-Id`` when sending the email. The

0 commit comments

Comments
 (0)