DEV Community

Discussion on: How to send email using SMTP server in django?

Collapse
 
shubhamkshatriya25 profile image
Shubham Singh Kshatriya

Hi Karan,

Instead of logging in with the account password, you'll now log in using a password generated for a specific app. You may follow the following steps.

  1. Turn on 2-Step Verification in your google account.
  2. Go to generate apps password and generate a password for your app.
  3. Use this password as EMAIL_HOST_PASSWORD.

I have tested it and it works. Let me know if you still face any issue.