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