process of sending emails
1 connect to an email server (ex: gmail, outlook..)
2 confirm the connection
3 set protocols (SMTP)
4 log on
5 send message
smtplib module
import smtplib
smtp_obj = smtplib.SMTP("smtp.gmail.com", 587)
functions of sending SMTP request and log in
functions of sending emails
import imaplib
M = imaplib.IMAP4_SSL('imap.gmail.com')