diff --git a/lib/ansible/modules/notification/mail.py b/lib/ansible/modules/notification/mail.py index 7c7d5f2e5b..862e61ccef 100644 --- a/lib/ansible/modules/notification/mail.py +++ b/lib/ansible/modules/notification/mail.py @@ -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()