mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
update auth_flag variable after STARTTLS connection is established, fixes #26376
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user