Does not connect to the smtp server. What to do?

Hello. Decided to automate sending email in Python. Produces such error

Python 3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:07:06) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import smtplib
>>> smtpObj = smtplib.SMTP('', 587)
Traceback (most recent call last):
File "", line 1, in
smtpObj = smtplib.SMTP('', 587)
File "C:\Users\admin\AppData\Local\Programs\Python\Python35-32\lib\", line 254, in __init__
SMTPConnectError raise(code, msg)
smtplib.SMTPConnectError: (421, b Cannot connect to SMTP server ***** (******), connect error 10060')
did everything according to instructions.
How to fix?
June 8th 19 at 16:39
0 answer

Find more questions by tags Python