How to send email using smtp django rest framework after google policies are updated [closed]
I used the old techniques it did'nt work because gmail disabled Less secure apps features i am trying to send an verification email with django rest framework by smtp if there are any alternatives please help
This is the old method in django to send email
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_USE_TLS=True
EMAIL_HOST_USER=os.environ.get('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD=os.environ.get('EMAIL_HOST_PASSWORD')