Skip to content

Commit 91aa728

Browse files
committed
Minor tweaks
1 parent 7d360e6 commit 91aa728

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

mailer.rst

+7-8
Original file line numberDiff line numberDiff line change
@@ -423,21 +423,20 @@ setting the ``auto_tls`` option to ``false`` in the DSN::
423423
Ensure TLS
424424
~~~~~~~~~~
425425

426-
You may want to ensure TLS is used, either directly or via ``STARTTLS``,
427-
for sending mail over SMTP regardless of other options set or SMTP server
428-
support. You can set TLS as required by calling ``setRequireTls(true)``
429-
on the ``EsmtpTransport`` instance, or by setting the ``require_tls`` option
430-
to ``true`` in the DSN::
426+
You may want to ensure that TLS is used (either directly or via ``STARTTLS``)
427+
when sending mail over SMTP, regardless of other options or SMTP server support.
428+
To require TLS, call ``setRequireTls(true)`` on the ``EsmtpTransport`` instance,
429+
or set the ``require_tls`` option to ``true`` in the DSN::
431430

432431
$dsn = 'smtp://user:[email protected]?require_tls=true';
433432

434-
When TLS is set as required, a :class:`Symfony\\Component\\Mailer\\Exception\\TransportException`
435-
will be thrown if a TLS connection cannot be achieved during initial communications
433+
When TLS is required, a :class:`Symfony\\Component\\Mailer\\Exception\\TransportException`
434+
is thrown if a TLS connection cannot be established during the initial communication
436435
with the SMTP server.
437436

438437
.. note::
439438

440-
This setting only works when the ``smtp://`` protocol is used.
439+
This setting only applies when using the ``smtp://`` protocol.
441440

442441
.. versionadded:: 7.3
443442

0 commit comments

Comments
 (0)