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 @@ -1240,6 +1240,19 @@ disable asynchronous delivery.
1240
1240
->messageBus('app.another_bus');
1241
1241
};
1242
1242
1243
+ .. note ::
1244
+
1245
+ In cases of long-running scripts, and when Mailer uses the
1246
+ :class: `Symfony\\ Component\\ Mailer\\ Transport\\ Smtp\\ SmtpTransport `
1247
+ you may manually disconnect from the SMTP server to avoid keeping
1248
+ an open connection to the SMTP server in between sending emails.
1249
+ You can do so by using the ``stop() `` method.
1250
+
1251
+ .. versionadded :: 6.1
1252
+
1253
+ The :method: `Symfony\\ Component\\ Mailer\\ Transport\\ Smtp\\ SmtpTransport::stop() `
1254
+ method was made public in Symfony 6.1.
1255
+
1243
1256
Adding Tags and Metadata to Emails
1244
1257
----------------------------------
1245
1258
You can’t perform that action at this time.
0 commit comments