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 __init__(self, name=None, **kwargs):
      super().__init__(name)
  
      connection_data = kwargs.get("connection_data", {})
      self.connection_data = connection_data
      self.kwargs = kwargs
  
      self.connection = None
      self.is_connected = False
  
      emails = EmailsTable(self)
      self._register_table("emails", emails)
  
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 1 to create a new EmailHandler object from inherited base classes: APIHandler with example: obj = EmailHandler(name)