input: Write a function to send automated emails to a list of recipients. The function should take a list of emails as input, iterate over the list, and send an email to each address using the smtp lib. The input list can be empty and should be handled gracefully without throwing errors.
  recipient_emails = ["email1@example.com","email2@example.com"]
  assert send_automated_email(recipient_emails)==None
  recipient_emails = []
  assert send_automated_email(recipient_emails)==None
output: def send_automated_email(recipient_emails):
      import smtplib
      from email.mime.text import MIMEText
      from email.mime.multipart import MIMEMultipart
  
      sender_email = "your_email@example.com"
      sender_password = "your_password"
      subject = "Automated Email"
      body = "This is an automated email sent to you."
  
      for email in recipient_emails:
          message = MIMEMultipart()
          message['From'] = sender_email
          message['To'] = email
          message['Subject'] = subject
          message.attach(MIMEText(body, 'plain'))
  
          with smtplib.SMTP('smtp.example.com', 587) as server:
              server.starttls()
              server.login(sender_email, sender_password)
              server.sendmail(sender_email, email, message.as_string())