Python 发送邮件 socket.gaierror: [Errno 11004] getaddrinfo failed
发布时间:2023-04-14 11:30:28 所属栏目:教程 来源:
导读:Traceback (most recent call last):
File "D:/soft/test.py", line 140, in <module>
main_runNow()
File "D:/soft/test.py", line 133, in main_runNow
sendmail(str(disk_free),files)
File "
File "D:/soft/test.py", line 140, in <module>
main_runNow()
File "D:/soft/test.py", line 133, in main_runNow
sendmail(str(disk_free),files)
File "
|
Traceback (most recent call last): File "D:/soft/test.py", line 140, in <module> main_runNow() File "D:/soft/test.py", line 133, in main_runNow sendmail(str(disk_free),files) File "D:/soft/test.py", line 42, in sendmail smtp = smtplib.SMTP_SSL("smtp.163.com",994) #实例化smtp服务器 File "C:\python38\lib\smtplib.py", line 1043, in __init__ SMTP.__init__(self, host, port, local_hostname, timeout, File "C:\python38\lib\smtplib.py", line 255, in __init__ (code, msg) = self.connect(host, port) File "C:\python38\lib\smtplib.py", line 339, in connect self.sock = self._get_socket(host, port, self.timeout) File "C:\python38\lib\smtplib.py", line 1049, in _get_socket new_socket = socket.create_connection((host, port), timeout, File "C:\python38\lib\socket.py", line 787, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "C:\python38\lib\socket.py", line 918, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 11004] getaddrinfo Failed (编辑:汽车网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
