File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -550,6 +550,12 @@ and headers.
550
550
$mailer->header('X-Custom-Header')->value('foobar');
551
551
};
552
552
553
+ .. caution ::
554
+
555
+ Some third-party providers don't support the usage of keywords like ``from ``
556
+ in the ``headers ``. Check out your provider's documentation before setting
557
+ any global header.
558
+
553
559
Handling Sending Failures
554
560
-------------------------
555
561
@@ -1495,3 +1501,4 @@ you can use the built in assertions::
1495
1501
.. _`PEM encoded` : https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail
1496
1502
.. _`default_socket_timeout` : https://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
1497
1503
.. _`RFC 3986` : https://www.ietf.org/rfc/rfc3986.txt
1504
+ .. _`Mailjet API V3` : https://dev.mailjet.com/email/guides/send-api-v31/#add-email-headers
Original file line number Diff line number Diff line change @@ -334,6 +334,14 @@ Sections are a way to split the profile timeline into groups. Example::
334
334
$this->stopwatch->start('processing-file');
335
335
$this->stopwatch->stopSection('parsing');
336
336
337
+ All events that don't belong to any named section are added to the special section
338
+ called ``__root__ ``. This way you can get all stopwatch events, even if you don't
339
+ know their names, as follows::
340
+
341
+ foreach($this->stopwatch->getSectionEvents('__root__') as $event) {
342
+ echo (string) $event;
343
+ }
344
+
337
345
Learn more
338
346
----------
339
347
You can’t perform that action at this time.
0 commit comments