[Answered ]-Django can not send email when deployed by nginx+uwsgi+Django

1👍

  1. EMAIL_HOST = 'smtp.qq.com'
  2. change EMAIL_PORT='465' to EMAIL_PORT = 587, with no quotes.
  3. EMAIL_HOST_USER = 'abc@qq.com' # try to use your real email address.
  4. RECEIVE_EMIAL_LIST=['receiver@qq.com'] to RECEIVE_EMIAL_LIST=['receiver@qq.com'**,**] # add a comma at the end of the list is a good habit.
👤max yi

1👍

Have you checked that your production environment has the same network settings as the development environment?

Have you tried to ping or telnet the SMTP server from production?

Is possible that the production host is in a DMZ or in a subnet that has restricted access to the SMTP server you are trying to reach.

Leave a comment