Message from Python discussions
November 2018
— Import smtplib
server=smtplib.SMTP("smtp.gmail.com",587)
server.starttls()
server.login("Email Address","pasword")
msg="Hello I send this Email form my Python project"
server.sendmail("Email Addressgmail.com","Email Addressgmail.com",msg)
server.quit()
Hello guys that is my code I am trying to send mail form my python3 and there is give an Error TimeoutError: [Errno 60] Operation timed out
— & is binary AND operator,
Using 4 bit
4 is 1000
2 is 0010
== 0000
Cuz 1 & 0 = 0
1 & 1 = 1
— Please help me
— May be network ?
— That is the network issue so far
— How I also turn on my account https://myaccount.google.com/lesssecureapps
— Have you enabled 2-Step Verification for gmail?
— No I don't enable it how I can
— If it works try specifying the timeout yourself,
server =
smtplib.SMTP("smtp.gmail.com", 587, None, 30)
Or try to change the port
— Of this time give==> socket.timeout: timed out
— Trying to run selenium script chrome driver eror not in path .... im using linux.....