From 806da693ece0fd268f1d6e9a28ed1cc52d12a3ac Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sat, 22 Feb 2020 19:18:21 +0100 Subject: [PATCH] [Mailer] Document the usage of default_socket_timeout in SMTP --- components/mailer.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/mailer.rst b/components/mailer.rst index 45388e33cb1..f88972afe46 100644 --- a/components/mailer.rst +++ b/components/mailer.rst @@ -98,6 +98,16 @@ For third-party providers, refer to the following table: Sendgrid sendgrid+smtp://apikey:KEY@default n/a sendgrid+api://KEY@default ==================== ========================================== =========================================== ======================================== +.. note:: + + When using SMTP, the default timeout for sending a message before throwing an + exception is the value defined in the `default_socket_timeout`_ PHP.ini option. + + .. versionadded:: 5.1 + + The usage of ``default_socket_timeout`` as the default timeout was + introduced in Symfony 5.1. + Instead of choosing a specific protocol, you can also let Symfony pick the best one by omitting it from the scheme: for instance, ``mailgun://KEY:DOMAIN@default`` is equivalent to ``mailgun+https://KEY:DOMAIN@default``. @@ -213,3 +223,4 @@ To learn more about how to use the mailer component, refer to the .. _`high availability`: https://en.wikipedia.org/wiki/High_availability .. _`load balancing`: https://en.wikipedia.org/wiki/Load_balancing_(computing) +.. _`default_socket_timeout`: https://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy