Google not helping :(
I get an error, then get an email saying google has blocked it. How can i turn this off? Thanks!
I'm not sure why you call .ehlo twice. But ignoring that, there seems to be a simpler way to create an SSL connection to GMail using the following method:
Give that a go and see if you have anymore luck!
I did, but i'm still getting this error:
Traceback (most recent call last):
File "main.py", line 18, in <module>
File "/usr/lib/python3.8/smtplib.py", line 734, in login
File "/usr/lib/python3.8/smtplib.py", line 723, in login
(code, resp) = self.auth(
File "/usr/lib/python3.8/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 l6sm298046ilq.61 - gsmtp')