Skip to content

Commit 72f19fc

Browse files
committed
minor #16800 [Mailer] max_per_second option configurable via DSN (gassan)
This PR was squashed before being merged into the 6.2 branch. Discussion ---------- [Mailer] `max_per_second` option configurable via DSN <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> AbstractTransport::setMaxPerSecond(float) was introduces in 5.1 but wan not configurable by dsn Commits ------- 7fddf4d [Mailer] `max_per_second` option configurable via DSN
2 parents 4a8d673 + 7fddf4d commit 72f19fc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mailer.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,15 @@ Other Options
283283

284284
$dsn = 'smtps://smtp.example.com?ping_threshold=200'
285285

286+
``max_per_second``
287+
The number of messages to send per second (0 to disable this limitation)::
288+
289+
$dsn = 'smtps://smtp.example.com?max_per_second=2'
290+
291+
.. versionadded:: 6.2
292+
293+
The ``max_per_second`` option was introduced in Symfony 6.2.
294+
286295
Creating & Sending Messages
287296
---------------------------
288297

0 commit comments

Comments
 (0)