0

with smtplib.SMTP_SSL(self.host, self.port) as server: server.login(user=self.user, password=self.password) yield server

5
  • What do your MTA logs say? Commented Aug 8, 2024 at 8:49
  • how can we get that logs actually. ia m running a docker project in python so how can we get that logs ? Commented Aug 8, 2024 at 8:59
  • if the password for the app expires? Maybe that's the problem? then it will not raise? Commented Aug 8, 2024 at 9:07
  • I can't tell you how your services/hosts are configured. Commented Aug 8, 2024 at 14:52
  • EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST = "smtp.gmail.com" EMAIL_USE_TLS = True EMAIL_PORT = 587 EMAIL_HOST_USER = "[email protected]" EMAIL_HOST_PASSWORD = "app_password" same thing i give Commented Aug 9, 2024 at 9:09

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.