Skip to content

Commit c4a09cb

Browse files
committed
document added mailer transport options
1 parent 3a82166 commit c4a09cb

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

components/mailer.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,43 @@ the application or when using a self-signed certificate::
177177

178178
The ``verify_peer`` option was introduced in Symfony 5.1.
179179

180+
Other options
181+
-------------
182+
183+
.. versionadded:: 5.2
184+
185+
These options were added in Symfony 5.2.
186+
187+
command
188+
~~~~~~~
189+
190+
Command to be executed by ``sendmail`` transport.
191+
192+
$dsn = 'sendmail://default?command=/usr/sbin/sendmail%20-oi%20-t'
193+
194+
local_domain
195+
~~~~~~~~~~~~
196+
197+
The domain name to use in ``HELO`` command.
198+
199+
$dsn = 'smtps://smtp.example.com?local_domain=example.org
200+
201+
restart_threshold
202+
~~~~~~~~~~~~~~~~~
203+
204+
The maximum number of messages to send before re-starting the transport. Can be
205+
used together with ``restart_threshold_sleep`` which is the number of seconds to
206+
sleep between stopping and re-starting the transport.
207+
208+
$dsn = 'smtps://smtp.example.com?restart_threshold=10&restart_threshold_sleep=1
209+
210+
ping_threshold
211+
~~~~~~~~~~~~~~
212+
213+
The minimum number of seconds between two messages required to ping the server.
214+
215+
$dsn = 'smtps://smtp.example.com?ping_threshold=200
216+
180217
Sending emails asynchronously
181218
-----------------------------
182219

0 commit comments

Comments
 (0)