mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
update auth_flag variable after STARTTLS connection is established, fixes #26376
This commit is contained in:
parent
505dd9fe44
commit
5c0c985547
1 changed files with 1 additions and 0 deletions
|
@ -312,6 +312,7 @@ def main():
|
||||||
try:
|
try:
|
||||||
smtp.starttls()
|
smtp.starttls()
|
||||||
smtp.ehlo()
|
smtp.ehlo()
|
||||||
|
auth_flag = smtp.has_extn('AUTH')
|
||||||
secure_state = True
|
secure_state = True
|
||||||
except smtplib.SMTPException:
|
except smtplib.SMTPException:
|
||||||
e = get_exception()
|
e = get_exception()
|
||||||
|
|
Loading…
Reference in a new issue