Skip to content

Commit 8f9a36d

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: [Mailer] Document the stop() method of SmtpTransport
2 parents 02e0df1 + 1c82adf commit 8f9a36d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

mailer.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,19 @@ disable asynchronous delivery.
12801280
->messageBus('app.another_bus');
12811281
};
12821282
1283+
.. note::
1284+
1285+
In cases of long-running scripts, and when Mailer uses the
1286+
:class:`Symfony\\Component\\Mailer\\Transport\\Smtp\\SmtpTransport`
1287+
you may manually disconnect from the SMTP server to avoid keeping
1288+
an open connection to the SMTP server in between sending emails.
1289+
You can do so by using the ``stop()`` method.
1290+
1291+
.. versionadded:: 6.1
1292+
1293+
The :method:`Symfony\\Component\\Mailer\\Transport\\Smtp\\SmtpTransport::stop`
1294+
method was made public in Symfony 6.1.
1295+
12831296
Adding Tags and Metadata to Emails
12841297
----------------------------------
12851298

0 commit comments

Comments
 (0)