Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question