Error sending email: raise SMTPAuthenticationError(code, resp)

前端 未结 4 624
甜味超标
甜味超标 2021-01-05 07:12

Im trying to send emails with smtp module, but Im having an error:

File \"/usr/lib/python2.7/smtplib.py\", in login    
 raise SMTPAuthenticationError(code,          


        
4条回答
  •  情书的邮戳
    2021-01-05 07:53

    I had exactly the same problem. Yes, it worked. By enabling your gmail account security setting -> Allow less secure app, I was able to send a simple email from one gmail to another gmail account.

    WARNING: Allowing low security for apps accessing your Google account is not recommended by google. It can be a security threat. Turn it OFF after the experiment.

提交回复
热议问题