update auth_flag variable after STARTTLS connection is established, fixes #26376

This commit is contained in:
R. Soto 2017-07-03 17:34:58 -06:00 committed by Brian Coca
parent 505dd9fe44
commit 5c0c985547

View file

@ -312,6 +312,7 @@ def main():
try:
smtp.starttls()
smtp.ehlo()
auth_flag = smtp.has_extn('AUTH')
secure_state = True
except smtplib.SMTPException:
e = get_exception()