Cannot set Django to work with smtp.gmail.com

前端 未结 5 1673
不知归路
不知归路 2021-01-01 13:05

I\'ve been trying to get django to work with gmail\'s smtp server to send mails but I always get this traceback. Any help will be most appreciated.

----- settings.p

5条回答
  •  梦毁少年i
    2021-01-01 13:14

    you have to go to this link https://www.google.com/settings/u/2/security/lesssecureapps?pageId=none and turn on the access for less secure apps

    this option allows django to access your email and send email via it .

提交回复
热议问题