Why is this not working and how do i fix it

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

You are viewing a single comment. View All

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