TimeoutError Traceback (most recent call last)
File <command-3312150305305279>, line 2
1 email = 'geraldgleason@outlook.com'
----> 2 check_email(email)
File <command-3312150305305278>, line 19, in check_email(email)
17 with smtplib.SMTP() as smtp:
18 try:
---> 19 smtp.connect(mx_records[0].exchange.to_text())
20 code, _ = smtp.helo()
21 if code != 250:
File /usr/lib/python3.10/smtplib.py:341, in SMTP.connect(self, host, port, source_address)
339 port = self.default_port
340 sys.audit("smtplib.connect", self, host, port)
--> 341 self.sock = self._get_socket(host, port, self.timeout)
342 self.file = None
343 (code, msg) = self.getreply()