I registered a domain and a private email using namecheap.com. I am trying to send an email from this private email. However, I get the error in the title.
In my set
I am able to resolve the issue with modifying below line of code, by adding port number with server name:
server = smtplib.SMTP('mail.mycompany.com:587')