I used this to bypass STARTTLS if not available on the mail server
# If this fails, it just returns an error, but it shouldn't raise an
# exception unless something goes really wrong (in which case we want
# to fail anyway).
if self._connection.has_extn('STARTTLS'): self._connection.starttls() self._connection.ehlo()
I used this to bypass STARTTLS if not available on the mail server
# If this fails, it just returns an error, but it shouldn't raise an n.has_extn( 'STARTTLS' ):
self. _connection. starttls( )
self. _connection. ehlo()
# exception unless something goes really wrong (in which case we want
# to fail anyway).
if self._connectio