We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
程序内默认的发邮件程序为MAILGUN 如果要使用smtp发件可以修改email.py文件为如下
# 是否开启邮件功能 USE_SMTP = True # ANYMAIL = {"MAILGUN_API_KEY": "", "MAILGUN_SENDER_DOMAIN": ""} EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_USE_TLS = False # 发件地址 EMAIL_HOST = "smtpdm-ap-southeast-1.aliyun.com" # 发件端口 EMAIL_PORT = 80 # 用户名 EMAIL_HOST_USER = "noreply@xxx.com" # 密码或者授权码 EMAIL_HOST_PASSWORD = "xxxxx" # 回信地址 DEFAULT_FROM_EMAIL = "noreply@xxx.com"