Code review comment for lp:~mbp/bzr-email/335332-starttls

Revision history for this message
John D (v-jbd) wrote :

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()

« Back to merge proposal