Skip to content

Commit 9370179

Browse files
committed
[Mailer] Mentioned the getMessageId() method
1 parent f2fcdde commit 9370179

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mailer.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,17 @@ provides access to the original message (``getOriginalMessage()``) and to some
271271
debug information (``getDebug()``) such as the HTTP calls done by the HTTP
272272
transports, which is useful to debug errors.
273273

274+
.. note::
275+
276+
Some mailer providers change the ``Message-Id`` when sending the email. The
277+
``getMessageId()`` method from ``SentMessage`` always returns the definitive
278+
ID of the message (being the original random ID generated by Symfony or the
279+
new ID generated by the mailer provider).
280+
281+
.. versionadded:: 4.4
282+
283+
The ``getMessageId()`` method was introduced in Symfony 4.4.
284+
274285
The exceptions related to mailer transports (those which implement
275286
:class:`Symfony\\Component\\Mailer\\Exception\\TransportException`) also provide
276287
this debug information via the ``getDebug()`` method.

0 commit comments

Comments
 (0)