hawkins / Shawk

Library to Send & Receive SMS for Free using Email or Your Phone Number
https://shawk.now.sh/
MIT License
16 stars 4 forks source link

login failed #21

Open melnikovlb opened 1 year ago

melnikovlb commented 1 year ago

Traceback (most recent call last): File "C:\Users\Lev\Desktop\fish.py", line 5, in client = shawk.Client(user, password) File "C:\Users\Lev\AppData\Roaming\Python\Python39\site-packages\shawk\Client.py", line 43, in init self.smtp.login(str(user), str(pwd)) File "C:\Program Files\Python39\lib\smtplib.py", line 734, in login raise last_exception File "C:\Program Files\Python39\lib\smtplib.py", line 723, in login (code, resp) = self.auth( File "C:\Program Files\Python39\lib\smtplib.py", line 646, 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 f8-20020a2e3808000000b002ba15c272e8sm1712843lja.71 - gsmtp')

The password is correct, but it says its wrong

hawkins commented 1 year ago

Hey! Did you check that SMTP access was enabled, shown here? https://shawk.readthedocs.io/en/latest/Configuring%20Gmail.html You might also have success using a Google App password, like that page suggests too. It's been a long time since I've worked with shawk myself, but these steps is where I would suggest starting if you haven't already