Skip to content

Commit e2452e0

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: tip to not follow redirects when testing mailer
2 parents de8e9e9 + cffa8fe commit e2452e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mailer.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,6 +1869,13 @@ the :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\MailerAssertionsTrait`::
18691869
}
18701870
}
18711871

1872+
.. tip::
1873+
1874+
If your controller returns a redirect response after sending the email, make
1875+
sure to have your client *not* follow redirects. The kernel is rebooted after
1876+
following the redirection and the message will be lost from the mailer event
1877+
handler.
1878+
18721879
.. _`Amazon SES`: https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Mailer/Bridge/Amazon/README.md
18731880
.. _`App Password`: https://support.google.com/accounts/answer/185833
18741881
.. _`default_socket_timeout`: https://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout

0 commit comments

Comments
 (0)