input: Write a function to send an automated email to a list of recipients. The function should take a list of email addresses as input, iterate over the list, and send an email to each address.
  assert send_automated_email(["email1@example.com", "email2@example.com"]) == "Email sent successfully."
  assert send_automated_email(["email3@example.com"]) == "Email sent successfully."
  assert send_automated_email([]) == "No emails sent."
output: def send_automated_email(recipients):
      if not recipients:
          return "No emails sent."
      for email in recipients:
          # Code to send email to each recipient
          pass
      return "Email sent successfully."