Error sending email: raise SMTPAuthenticationError(code, resp)

前端 未结 4 619
甜味超标
甜味超标 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:52

    None of the less-secure options worked for me. What worked in the end was setting up 2-factor authentication, and then generating an app-specific password. Instructions here: https://support.google.com/domains/answer/9437157

提交回复
热议问题