input: Write a python function to automate sending an email using the smtplib and email.message libraries.
  assert send_email("sender@example.com", "receiver@example.com", "Test Email", "This is a test email message.", "smtp.example.com", 587, "password") == True
output: def send_email(sender, receiver, subject, body, smtp_server, port, password):
      import smtplib
      from email.message import EmailMessage
      
      msg = EmailMessage()
      msg.set_content(body)
      msg['Subject'] = subject
      msg['From'] = sender
      msg['To'] = receiver
      
      try:
          with smtplib.SMTP(smtp_server, port) as server:
              server.starttls()
              server.login(sender, password)
              server.send_message(msg)
          return True
      except Exception as e:
          print(f"Error: {e}")
          return False