Django Password_reset Email Settings
I'm learning the Django and doing a project now , in the tutorial it used the django.core.mail.backends.console.EmailBackend to test the function , now I want to use my real email
Solution 1:
remove EMAIL_FROM smpt try to send mail from EMAIL_FROM and there nothing right , mostly EMAIL_FROM us for multiple email use in on project otherwise you can use your authenticate email in EMAIL_FORM
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp server address here'
EMAIL_PORT = 25
EMAIL_HOST_USER = 'the sender email here'
EMAIL_HOST_PASSWORD = 'password here'
DEFAULT_FROM_EMAIL = 'same as EMAIL_HOST_USER'
Post a Comment for "Django Password_reset Email Settings"