input: Write a function to send an automated email. 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_emails(["email1@example.com","email2@example.com"])=='Email sent successfully.'
  assert send_automated_emails(["email@example.com"])=='Email sent successfully.'
  assert send_automated_emails([])=='No emails to send.'
output: def send_automated_emails(email_addresses):
      if not email_addresses:
          return 'No emails to send.'
      for email in email_addresses:
          # Code to send email to each address
          pass
      return 'Email sent successfully.'