Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在settings.py中有:
EMAIL_HOST = 'mail.myserver.pl' EMAIL_PORT = 587 EMAIL_HOST_USER = 'mymail@mail.myserver.pl' EMAIL_HOST_PASSWORD = 'mypassword' EMAIL_USE_TLS = False
但是我的服务器需要 SSL,我得到 AuthenticationError 异常。如何在 Django 中启用 SSL 支持?
试试这个:EMAIL_USE_SSL = True