SMTP Error in Django on Production using Railway [closed]
I am getting error while trying the same end point locally so it's working properly fine but in production it dosen't work and always throwing this error. The code of my settings.py file is as
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True # or False depending on your setup
EMAIL_HOST_USER = config('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = config('EMAIL_HOST_PASSWORD')