diff --git a/mailer.rst b/mailer.rst index 86683f365c1..90472439eb5 100644 --- a/mailer.rst +++ b/mailer.rst @@ -978,6 +978,7 @@ you have a transport called ``async``, you can route the message there: + %env(MESSENGER_TRANSPORT_DSN)% @@ -990,6 +991,9 @@ you have a transport called ``async``, you can route the message there: // config/packages/messenger.php $container->loadFromExtension('framework', [ 'messenger' => [ + 'transports' => [ + 'async' => '%env(MESSENGER_TRANSPORT_DSN)%', + ], 'routing' => [ 'Symfony\Component\Mailer\Messenger\SendEmailMessage' => 'async', ],