Cannot connect to Zoho mail via Python SMTP: Connection refused
I have a website that needs to send an email to a user when they sign up for verification. However, whenever I try to connect from smtplib using the servers that were provided, I get the connection refused exception.
Here is the code I'm using:
- server=smtplib.SMTP('smtp.zoho.com', 587)