[IMP] developer/reference/cli: --smtp-ssl [encryption]

The `--smtp-ssl` flag can now work as a regular `--option value` option
where the value can be any value from the `smtp_encryption` field of
`ir.mail_server`.

community: odoo/odoo#154077
task-2861790
This commit is contained in:
Julien Castiaux 2024-02-15 18:21:07 +01:00
parent 606b56ccda
commit 17b36fa3dd

View File

@ -314,9 +314,18 @@ Emails
.. option:: --smtp-port <port>
.. option:: --smtp-ssl
.. option:: --smtp-ssl [encryption]
If set, odoo should use SSL/STARTSSL SMTP connections
Connection encryption, accepted values are:
* ``none``: regular TCP connection without encryption. Default when the flag is ommited.
* ``starttls``: regular TCP connection upgraded to TLS if the server supports the STARTTLS SMTP
command. The peer certificate is not verified. Default when the flag is present without value.
* ``starttls_strict``: same as ``starttls`` but with certificate verification.
* ``ssl``: immediate TLS connection. The peer certificate is not verified.
* ``ssl_strict``: same as ``ssl`` but with certificate verification.
Note: ``--smtp-ssl=encryption`` is not supported.
.. option:: --smtp-user <name>