>>> server.connect('smtp.163.com')
(220, b'163.com Anti-spam GT for Coremail System (163com[20141201])')
>>> server.login('free_eerf@163.com','passwd@163')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\python\Python37\lib\smtplib.py", line 730, in login
raise last_exception
File "D:\python\Python37\lib\smtplib.py", line 721, in login
initial_response_ok=initial_response_ok)
File "D:\python\Python37\lib\smtplib.py", line 642, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'Error: authentication failed')