with smtplib.SMTP('smtp.gmail.com') as connection:
connection.starttls()
connection.login(user=my_email, password=password)
connection.sendmail(
from_addr=my_email,
to_addrs="someon...@gmail.com",
msg="Subject: Checking out automated mail in Python\n\nThis is
the mail body."
)