input: Write a Python program to send an automated email. The program should take a list of emails as input, iterate over the list, and send an email to each address.
  
  def send_automated_emails(recipient_emails, sender_email, password):
      import smtplib
  
      for email in recipient_emails:
          with smtplib.SMTP('smtp.gmail.com', 587) as server:
              server.ehlo()
              server.starttls()
              server.login(sender_email, password)
  
              subject = 'Automated Email from Program'
              message = 'Message body'
   
              server.sendmail(sender_email, email, 'Subject: ' + subject + '\n\n' + message)
              server.quit()
              print('Email sent successfully.')
  
  assert send_automated_emails(["email1@example.com","email2@example.com"], 'example@gmail.com', 'example_password')==None
output: def send_automated_emails(recipient_emails, sender_email, password):
      import smtplib
  
      for email in recipient_emails:
          with smtplib.SMTP('smtp.gmail.com', 587) as server:
              server.ehlo()
              server.starttls()
              server.login(sender_email, password)
  
              subject = 'Automated Email from Program'
              message = 'Message body'
   
              server.sendmail(sender_email, email, 'Subject: ' + subject + '\n\n' + message)