input: Write a function to send automatically an 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. If the email is sent successfully, print "Email sent successfully." If the given list of recipients is empty, print "No recipients provided.".
  assert send_automated_email(["email1@example.com","email2@example.com"])
  assert send_automated_email([])
  assert send_automated_email(["email1@example.com"])
output: def send_automated_email(recipients):
      if not recipients:
          print("No recipients provided.")
          return
      for email in recipients:
          # Simulate sending email
          print("Email sent successfully.")