with smtplib.SMTP_SSL(self.host, self.port) as server: server.login(user=self.user, password=self.password) yield server
- What do your MTA logs say?symcbean– symcbean2024-08-08 08:49:08 +00:00Commented 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 ?achu prasad– achu prasad2024-08-08 08:59:21 +00:00Commented Aug 8, 2024 at 8:59
- if the password for the app expires? Maybe that's the problem? then it will not raise?achu prasad– achu prasad2024-08-08 09:07:17 +00:00Commented Aug 8, 2024 at 9:07
- I can't tell you how your services/hosts are configured.symcbean– symcbean2024-08-08 14:52:23 +00:00Commented 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 giveachu prasad– achu prasad2024-08-09 09:09:06 +00:00Commented Aug 9, 2024 at 9:09
Add a comment |