File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -423,21 +423,20 @@ setting the ``auto_tls`` option to ``false`` in the DSN::
423
423
Ensure TLS
424
424
~~~~~~~~~~
425
425
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::
431
430
432
431
$dsn = 'smtp://user:[email protected] ?require_tls=true';
433
432
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
436
435
with the SMTP server.
437
436
438
437
.. note ::
439
438
440
- This setting only works when the ``smtp:// `` protocol is used .
439
+ This setting only applies when using the ``smtp:// `` protocol.
441
440
442
441
.. versionadded :: 7.3
443
442
You can’t perform that action at this time.
0 commit comments