STARTTLS extension not supported by server - Getting this error when trying to send an email through Django and a private email address

前端 未结 5 1055
南笙
南笙 2021-01-12 04:34

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

5条回答
  •  时光说笑
    2021-01-12 05:38

    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')     
    

提交回复
热议问题