We can send emails by using the following code in Python.
import smtplib
# list of email_id to send the mail
li = ["receiver1@gmail.com", "receiver2@gmail.com"]
for dest in li:
s = smtplib.SMTP('smtp.gmail.com', 587)
s.starttls()
s.login("sender@gmail.com", "secret")
message = "Python, Welcomes you....."
s.sendmail("sender@gmail.com", dest, message)
s.quit()