Jun-28-2024, 06:29 AM
The morning always brings light!
Trying again with gmail again, I changed to port 587 and used:
You don't need to remove the spaces from the app password either!!
Now this works smoothly with gmail, yahoo and QQ, straight from bash!
I wonder if the gf will be happy??
Trying again with gmail again, I changed to port 587 and used:
server.starttls(context=context)
context = ssl.create_default_context() server = smtplib.SMTP(smtp_server, port) server.starttls(context=context) server.login(sender_email, password)For this kind of login you need an app password. When I removed the spaces from the app password, I also deleted 1 letter, so it was wrong!
You don't need to remove the spaces from the app password either!!
Now this works smoothly with gmail, yahoo and QQ, straight from bash!
I wonder if the gf will be happy??