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

前端 未结 5 1043
南笙
南笙 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:36

    your server mail.privateemail.com does not know what is STARTTLS SMTP Commnad is

    this may happen in two cases:

    1. your server (mail.privateemail.com) do not support secure communication at all and you need to use plain, non-encrypted communication.
    2. you are trying to connect to the port that is already using SSL as the communication, then STARTTLS to upgrade connection to secure make no sense whatsoever.
    3. your server is configured improperly and ignores STARTTLS on submission port (587).

    Judging, that you are connecting to port 587 which should provide plain communication - it's either 1 or 3.

    If you want this just work, remove EMAIL_USE_TLS = True or set it to False, otherwise - SMTP server configuration should be fixed.

提交回复
热议问题