Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python ssl module
#5
The morning always brings light!

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??
Reply


Messages In This Thread
Python ssl module - by Pedroski55 - Jun-27-2024, 08:53 AM
RE: Python ssl module - by Larz60+ - Jun-27-2024, 09:22 AM
RE: Python ssl module - by Pedroski55 - Jun-27-2024, 03:43 PM
RE: Python ssl module - by Larz60+ - Jun-27-2024, 08:03 PM
RE: Python ssl module - by Pedroski55 - Jun-28-2024, 06:29 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020