input: Write a function to send an automated email to a list of recipients. The function should take a list of recipient emails as input and iterate over the list, sending an email to each address. Use the provided script as a guide to implement this function. If the email is sent successfully, print a message confirming it.
  assert send_automated_email(["email1@example.com","email2@example.com"])==None  
  assert send_automated_email(["invalidemail"])==None  
  assert send_automated_email([])==None  
  assert send_automated_email(["test@gmail.com"])==None
output: def send_automated_email(recipients):
      for email in recipients:
          try:
              # Simulate sending email
              print(f"Email sent to {email}")
          except Exception as e:
              print(f"Failed to send email to {email}: {e}")