SMTP ERROR using Django in Railway Production [duplicate]
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')
I am using my gmail (codingwithhasnin@gmail.com) and the password which I got from gmail app password which works fine locally and also on AWS EC2 instance but not in railway production. What can be the issue?