I am making a simple project using smtlib library in python by which i can send birthday wishes via gmail and this is my code I have tried disabling firewall and antivirus but still its not working
import smtplib
my_email = "test@gmail.com"
password = "1234"
connection = smtplib.SMTP("smtp.gmail.com")
connection.starttls() # secure
connection.login(user=my_email, password=password)
connection.sendmail(from_addr=my_email,
to_addrs="test@gmail.com", msg="Hello")
connection.close()