S
S
Sergey2018-09-13 16:41:05
Django
Sergey, 2018-09-13 16:41:05

How to send email using Django via MS Exchange mail server?

How to send email using Django via MS Exchange mail server?
I specify in the settings:
EMAIL_USE_TLS = False
EMAIL_USE_SSL = False
EMAIL_HOST = "mail.company.ru"
EMAIL_PORT = 25
EMAIL_HOST_USER = "[email protected]"
EMAIL_HOST_PASSWORD = "123456"
DEFAULT_FROM_EMAIL = "[email protected]"
And I get an error when sending :
No suitable authentication method found.
At the same time, if I use smptp Yandex, then everything goes fine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
szelga, 2018-10-16
@szelga

as the previous speaker already noted, it depends on the settings of Exchange itself. if you can get to its settings, then you need to enable basic authentication (in my opinion), if it is not enabled. You can also try to enable TLS and set the port to 587. You can also look towards https://pypi.org/project/django-smtp-ntlm-backend/ if the previous steps did not help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question