When using SMTP from Brevo, it works fine on localhost. However, after deploying the project to PythonAnywhere, I encountered a connection refusal error.
EMAIL_HOST = 'smtp-relay.brevo.com'
EMAIL_PORT = '587'
EMAIL_HOST_USER = env.str('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = env.str('EMAIL_HOST_PASSWORD')
I found an article on Brevo (article) how to check port availability. After following the steps, I attempted to connect by entering "telnet smtp-relay.brevo.com 587" but received an error message stating "Trying 1.179.118.1... telnet: Unable to connect to remote host: Connection refused"