You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/ApiOverview/Mail/Index.rst
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -417,7 +417,6 @@ Set the current request object for `FluidEmail`
417
417
In order to use ViewHelpers that need a valid current request, such as :ref:`t3viewhelper:typo3-fluid-uri-page`,
418
418
pass the current request to the FluidEmail instance:
419
419
420
-
421
420
.. code-block:: php
422
421
423
422
use TYPO3\CMS\Core\Mail\FluidEmail;
@@ -426,8 +425,12 @@ pass the current request to the FluidEmail instance:
426
425
$email->setRequest($this->request);
427
426
428
427
Read more aboout :ref:`Getting the PSR-7 request object <getting-typo3-request-object>` in different
429
-
contexts. In a context where no valid request object can be retrieved, such as in a
430
-
:ref:`Console command <t3coreapi:symfony-console-commands>` the affected ViewHelpers cannot be used.
428
+
contexts.
429
+
430
+
In a context where no valid request object can be retrieved, such as in a
431
+
:ref:`Console command <t3coreapi:symfony-console-commands>` a valid frontend context need to be
432
+
simmulated (`Simulating a frontend request in TYPO3 Commands <https://docs.typo3.org/permalink/t3coreapi:console-command-tutorial-fe-request-example>`_)
433
+
or the affected ViewHelpers cannot be used.
431
434
432
435
Trying to use these ViewHelpers without a valid request throws an :doc:`error <t3exceptions:Exceptions/1639819269>`
0 commit comments