Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3dd7f1d

Browse filesBrowse files
committed
feature #12786 [Mailer] Mentioned the getMessageId() method (javiereguiluz)
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] Mentioned the getMessageId() method Fixes #12470. Commits ------- 9370179 [Mailer] Mentioned the getMessageId() method
2 parents e4286f9 + 9370179 commit 3dd7f1d
Copy full SHA for 3dd7f1d

File tree

Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed

‎mailer.rst

Copy file name to clipboardExpand all lines: mailer.rst
+11Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.