input: Write a function to send an automated email to a list of recipients. The function should accept a list of email addresses and iterate over the list, sending an email to each address. If the operation is successful, print "Email sent successfully."
  assert send_emails(["email1@example.com","email2@example.com"])
  assert send_emails(["example@gmail.com"])
output: def send_emails(recipients):
      for email in recipients:
          # Simulate sending email
          print("Email sent successfully.")
      return True