Hey @Varsha, you can try out the following code:
import smtplib
# list of email_id to send the mail
list = ["abc@gmail.com", "def@gmail.com"]
for i in range(len(list)):
s = smtplib.SMTP('smtp.gmail.com', 587)
s.starttls()
#sender emai id and email password
s.login("email-id", "id-password")
message = "Message-to-send"
s.sendmail("sender_email_id", list[i], message)
s.quit()