#!/usr/bin/python3 import smtplib import getpass smtpobj = smtplib.SMTP('smtp.gmail.com',587) my_email = input("What is your gmail?:") my_passw = getpass.getpass("Enter the password:") smtpobj.starttls()  #This step enables encryption(TLS Encryption) for your connection. smtpobj.login(my_email,my_passw) #this will help user to logged in gmail account