nwx1
1
I’ve already setup the email settings in Django to send out email.
I get this error when trying to send email via outlook.
This is my email setup:
EMAIL_BACKEND = ‘django.core.mail.backends.smtp.EmailBackend’
EMAIL_HOST = ‘smtp.office365.com’ or ‘smtp-mail.outlook.com’
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_HOST_USER = “your email”
EMAIL_HOST_PASSWORD = “your password”
Anyone can advice on this?
Hi,
There might be a few issues:
- Are your
EMAIL_HOST_USER
and EMAIL_HOST_PASSWORD
correctly specified? Are they the same credentials that you put while configuring your email service?
- Your provider might have a few conditions, such as 2FA. Read the documentation.
- Because it says
Authentication is unsuccessful
, it is most likely that it is because of configuration. Double check your configuration.
nwx1
3
Hi Barotov,
I have another question to ask you. You know how to authenticate django via AD which uses local LDAP server on Windows?