Ask coding questions

← Back to all posts
Why is this not working and how do i fix it
Flyingcrabs (29)

So i wanted to email my own account to own account but it is not sending it

Comments
hotnewtop
VulcanWM (2758)

What error does it show?

Flyingcrabs (29)

Traceback (most recent call last):
File "main.py", line 10, in <module>
server.login(sender, password)
File "/usr/lib/python3.8/smtplib.py", line 743, in login
raise last_exception
File "/usr/lib/python3.8/smtplib.py", line 732, in login
(code, resp) = self.auth(
File "/usr/lib/python3.8/smtplib.py", line 655, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials 11sm11963329ilg.50 - gsmtp') @VulcanWM

VulcanWM (2758)

In your google account, have you changed the settings to that you can login in any website with google login with your account? @Flyingcrabs