In my case the cause was missing SERVER_EMAIL setting.
The default for SERVER_EMAIL
is root@localhost
. But many of email servers including
my email provider do not accept emails from such suspicious addresses. They silently drop the emails.
Changing the sender email address to django@my-domain.com
solved the problem. In settings.py
:
SERVER_EMAIL = 'django@my-domain.com'
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…