Use TLS is available
Unit test to check starttls and login are not performed when unsupported