def gmail_login(email, passwd):
 def connect():
  gmail = smtplib.SMTP('smtp.gmail.com', port=587)
  gmail.starttls()
  return gmail
 smtp_login(email, passwd, connect)

def gmail_login ( email , passwd ) : def connect ( ) : gmail = smtplib . SMTP ( 'smtp.gmail.com' , port = 587 ) gmail . starttls ( ) return gmail smtp_login ( email , passwd , connect )
logs into your gmail account with your full email address and password .