Django send_mail not working

后端 未结 3 564
误落风尘
误落风尘 2020-12-30 06:41

When the view that sends the email is used nothing happens, i then entered send_mail(...) into the python shell and it returned 1 but i didn\'t receive any emails.

T

3条回答
  •  情话喂你
    2020-12-30 07:13

    Google now provides a method to generate a password that you can use for applications that need to relay mail. its different from the password that you would use to login through webmail.

    Sign in to Google and start using App Passwords. This allows you to use a 16 digit password to access google services including ability to send out email. Refer below

    https://support.google.com/accounts/answer/185833?hl=en

提交回复
热议问题