SMTPHandler secure argument without credentials

July 5, 2021
1:50 p.m.
logging.handlers.SMTPHandler only uses the 'secure' argument when credentials are specified. https://docs.python.org/3/library/logging.handlers.html#logging.handlers.SMT... says: "To specify the use of a secure protocol (TLS), pass in a tuple to the secure argument. This will only be used when authentication credentials are supplied." The docstring confirms this, but I can't find an explanation of the intent behind this behaviour. Perhaps it would be a good idea to describe this as well.

September 2022
4:36 p.m.
Hi, Would anyone have an explanation of the intent behind this behaviour?
886
Age (days ago)
1323
Last active (days ago)
1 comments
1 participants
participants (1)
-
William Edwards