我正在尝试使用SMTP电子邮件后端从django发送电子邮件。这是我的配置:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mail.mydomain.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'no-reply@rmydomain.com'
EMAIL_HOST_PASSWORD = '***********'
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'no-reply@mydomain.com'
我有两个问题: