When trying to use the mail command on Fedora 31 w/ Python 3.7 it appears that the command will always fail with the message:
stg mail: cannot use TLS - no SSL support in Python
In digging into this I found the line generating it was:
if not hasattr(socket, 'ssl'):
raise CmdException("cannot use TLS - no SSL support in Python")
A bit of further digging seems to show that hasattr(socket, 'ssl') is not a valid away to test for if there is ssl support or not as socket.ssl was deprecated 1.
It appears the correct way to do this is to do an import in a try/except block as seen in this bugzilla 2, but I am not familiar enough with Python to be certain if this is the correct approach.