I am working in Jupyter Notebook using Python 2 and when I try to connect to smtplib.SMTP("smtp.gmail.com", 587) the code won't stop executing...
I've already tried to let less secure apps into google as I saw some people do in some solutions.
import smtplib
server = smtplib.SMTP("smtp.gmail.com", 587)
server.ehlo()
server.starttls()
from getpass import getpass
username = "myemail"
password = getpass()
I get the In [*] problem indicating that the kernel is still trying to execute this. However, when I looked up the tutorial online, it worked wonders for them.