风变编程17关 用python smtplib 发送邮件
每一步都按照课程操作的,最后却总是出现这个error
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 respond
在这个问题之前我还遇到过另外的一些error,比如下面这个,其他的我没有记录下来,
作为业余爱好者,我记得我查了百度,先后做了如下操作:
-
一开始的error我感觉是我的VS Code 内部设置有问题,不支持smtplib,我查了一些文章,安装了个 Perl Critic, 还下载了个openssl-1.1.1g.tar (不知道起没起到作用)
-
也有一些文章说是邮箱设置的问题,然后我去qq邮箱更改了设置如下