S
S
Sergey Lazarevic2022-02-10 15:30:29
Django
Sergey Lazarevic, 2022-02-10 15:30:29

SMTPServerDisconnected - when trying to integrate a mail.ru account with Django?

I'm trying to connect a mail.ru account to a Django project for sending service messages. If you try to send a message through this mail, the site just freezes and takes a long time to load, sometimes giving the error SMTPServerDisconnected - connection lost unexpectedly.

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.mail.ru'
EMAIL_PORT = 465
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'myemailpassword'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Falaleev, 2022-02-10
@suffix_ixbt

You need not myemailpassword but the application password!
https://help.mail.ru/mail/security/protection/external

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question