Compare commits

...

1 Commits

Author SHA1 Message Date
Julien Castiaux 17b36fa3dd [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
2025-02-20 13:27:09 +01:00
+11 -2
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>