From f713212527192a176931a7958d85d93c71e5bf2c Mon Sep 17 00:00:00 2001 From: Fritz Michael Gschwantner Date: Fri, 26 Jun 2020 22:01:44 +0100 Subject: [PATCH] [Mailer] Document new Mailer transport options --- mailer.rst | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/mailer.rst b/mailer.rst index fedcc71c366..be20d228dd4 100644 --- a/mailer.rst +++ b/mailer.rst @@ -253,6 +253,57 @@ the application or when using a self-signed certificate:: The ``verify_peer`` option was introduced in Symfony 5.1. +Other Options +~~~~~~~~~~~~~ + +``command`` + Command to be executed by ``sendmail`` transport:: + + $dsn = 'sendmail://default?command=/usr/sbin/sendmail%20-oi%20-t' + + .. versionadded:: 5.2 + + This option was introduced in Symfony 5.2. + + +``local_domain`` + The domain name to use in ``HELO`` command:: + + $dsn = 'smtps://smtp.example.com?local_domain=example.org' + + .. versionadded:: 5.2 + + This option was introduced in Symfony 5.2. + +``restart_threshold`` + The maximum number of messages to send before re-starting the transport. It + can be used together with ``restart_threshold_sleep``:: + + $dsn = 'smtps://smtp.example.com?restart_threshold=10&restart_threshold_sleep=1' + + .. versionadded:: 5.2 + + This option was introduced in Symfony 5.2. + +``restart_threshold_sleep`` + The number of seconds to sleep between stopping and re-starting the transport. + It's commont to combine it with ``restart_threshold``:: + + $dsn = 'smtps://smtp.example.com?restart_threshold=10&restart_threshold_sleep=1' + + .. versionadded:: 5.2 + + This option was introduced in Symfony 5.2. + +``ping_threshold`` + The minimum number of seconds between two messages required to ping the server:: + + $dsn = 'smtps://smtp.example.com?ping_threshold=200' + + .. versionadded:: 5.2 + + This option was introduced in Symfony 5.2. + Creating & Sending Messages --------------------------- pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy