8000 feature #13225 [Mailer] Document the usage of default_socket_timeout … · symfony/symfony-docs@c11c397 · GitHub
[go: up one dir, main page]

Skip to content

Commit c11c397

Browse files
committed
feature #13225 [Mailer] Document the usage of default_socket_timeout in SMTP (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- [Mailer] Document the usage of default_socket_timeout in SMTP Fixes #12999. Commits ------- 806da69 [Mailer] Document the usage of default_socket_timeout in SMTP
2 parents 2c2f19e + 806da69 commit c11c397

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/mailer.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ For third-party providers, refer to the following table:
9898
Sendgrid sendgrid+smtp://apikey:KEY@default n/a sendgrid+api://KEY@default
9999
==================== ========================================== =========================================== ========================================
100100

101+
.. note::
102+
103+
When using SMTP, the default timeout for sending a message before throwing an
104+
exception is the value defined in the `default_socket_timeout`_ PHP.ini option.
105+
106+
.. versionadded:: 5.1
107+
108+
The usage of ``default_socket_timeout`` as the default timeout was
109+
introduced in Symfony 5.1.
110+
101111
Instead of choosing a specific protocol, you can also let Symfony pick the
102112
best one by omitting it from the scheme: for instance, ``mailgun://KEY:DOMAIN@default``
103113
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
213223

214224
.. _`high availability`: https://en.wikipedia.org/wiki/High_availability
215225
.. _`load balancing`: https://en.wikipedia.org/wiki/Load_balancing_(computing)
226+
.. _`default_socket_timeout`: https://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout

0 commit comments

Comments
 (0)
0