socket.gaierror: [Errno 11001] getaddrinfo failed

前端 未结 8 1978
北海茫月
北海茫月 2021-01-06 08:33

I have tried to attached a file to the mail using python. Code:

import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIME         


        
8条回答
  •  情书的邮戳
    2021-01-06 08:58

    I prefer u guys to run the file as administrator for eg open cmd as administrator then type cd C:\into ur .py file path and then type python filename.py

    it worked for me. good luck

提交回复
热议问题