TimeOutError when trying to initiate smtplib.SMTP - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: TimeOutError when trying to initiate smtplib.SMTP (/thread-27731.html) |
TimeOutError when trying to initiate smtplib.SMTP - thecosmos - Jun-19-2020 So I am try to make SMTP connection to a host received by MX query of its domain. But when I do smtplib.SMTP('aspmx.l.google.com')or even smtplib.SMTP_SSL('aspmx.l.google.com'), it raises following TimeOutError. TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respondI am trying hard to figure out what could go wrong. I have even tried doing this on my cloud VPS instances but its still the same. |