Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STMPAuthenticationEmail when sending email #83

Open
sangshuduo opened this issue Jun 3, 2024 · 0 comments
Open

STMPAuthenticationEmail when sending email #83

sangshuduo opened this issue Jun 3, 2024 · 0 comments

Comments

@sangshuduo
Copy link

and how to reset the password in keyrings, then I can try another one

Traceback (most recent call last):
  File "/opt/homebrew/bin/knockknock", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/lib/python3.12/site-packages/knockknock/__main__.py", line 207, in main
    sender_func(**args)(run_func)()
  File "/opt/homebrew/lib/python3.12/site-packages/knockknock/email_sender.py", line 53, in wrapper_sender
    yag_sender.send(current_recipient, 'Training has started 🎬', contents)
  File "/opt/homebrew/lib/python3.12/site-packages/yagmail/sender.py", line 156, in send
    self.login()
  File "/opt/homebrew/lib/python3.12/site-packages/yagmail/sender.py", line 210, in login
    self._login(self.credentials)
  File "/opt/homebrew/lib/python3.12/site-packages/yagmail/sender.py", line 229, in _login
    self.smtp.login(self.user, password)
  File "/opt/homebrew/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/smtplib.py", line 750, in login
    raise last_exception
  File "/opt/homebrew/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/smtplib.py", line 739, in login
    (code, resp) = self.auth(
                   ^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/smtplib.py", line 662, in auth
    raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8  https://support.google.com/mail/?p=BadCredentials 6a1803df08f44-6ae4b417a00sm31586036d6.107 - gsmtp')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant