[Fixed]-Django sending email not show up in inbox

1๐Ÿ‘

I suggest you to following this configuration if you want to work with smtp gmail.

Add this configurations in your settings.py

This configurations is if you work with smtp.gmail.com, other smtp is similiar with configurations.

  1. Unlock the Captha: https://accounts.google.com/DisplayUnlockCaptcha
  2. Change to active: https://www.google.com/settings/security/lesssecureapps

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'your_gmail@gmail.com'
EMAIL_HOST_PASSWORD = 'your_password'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_USE_TLS = True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
๐Ÿ‘คbinpy

Leave a comment