class_docstr: A class for handling connections and interactions with Email (send and search).
  
  Attributes:
      "email": "Email address used to login to the SMTP and IMAP servers.",
      "password": "Password used to login to the SMTP and IMAP servers.",
      "smtp_server": "SMTP server to be used for sending emails. Default value is 'smtp.gmail.com'.",
      "smtp_port": "Port number for the SMTP server. Default value is 587.",
      "imap_server": "IMAP server to be used for reading emails. Default value is 'imap.gmail.com'."
code: def check_connection(self) -> StatusResponse:
      response = StatusResponse(False)
  
      try:
          self.connect()
          response.success = True
  
      except Exception as e:
          response.error_message = f"Error connecting to Email: {e}. "
          logger.error(response.error_message)
  
      if response.success is False and self.is_connected is True:
          self.is_connected = False
  
      return response
  
file_path: mindsdb/mindsdb/integrations/handlers/email_handler/email_handler.py
imports: from mindsdb.utilities import log
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb_sql import parse_sql
  from mindsdb.integrations.handlers.email_handler.email_tables import EmailsTable
  from mindsdb.integrations.handlers.email_handler.email_helpers import EmailClient
label_desc: Use image node_id 3 for calling the EmailHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response