File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,17 @@ provides access to the original message (``getOriginalMessage()``) and to some
271
271
debug information (``getDebug() ``) such as the HTTP calls done by the HTTP
272
272
transports, which is useful to debug errors.
273
273
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
+
274
285
The exceptions related to mailer transports (those which implement
275
286
:class: `Symfony\\ Component\\ Mailer\\ Exception\\ TransportException `) also provide
276
287
this debug information via the ``getDebug() `` method.
You can’t perform that action at this time.
0 commit comments