File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1280,6 +1280,19 @@ disable asynchronous delivery.
1280
1280
->messageBus('app.another_bus');
1281
1281
};
1282
1282
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
+
1283
1296
Adding Tags and Metadata to Emails
1284
1297
----------------------------------
1285
1298
You can’t perform that action at this time.
0 commit comments