code: def notify(title,
             message,
             jid,
             password,
             recipient,
             hostname=None,
             port=5222,
             path_to_certs=None,
             mtype=None,
             retcode=None):
      
  
      xmpp_bot = NtfySendMsgBot(jid, password, recipient, title, message, mtype)
  
      # NOTE: Below plugins weren't needed for Google Hangouts
      # but may be useful (from original sleekxmpp example)
      # xmpp_bot.register_plugin('xep_0030') # Service Discovery
      # xmpp_bot.register_plugin('xep_0199') # XMPP Ping
  
      if path_to_certs and os.path.isdir(path_to_certs):
          xmpp_bot.ca_certs = path_to_certs
  
      # Connect to the XMPP server and start processing XMPP stanzas.
      if xmpp_bot.connect(*([(hostname, int(port)) if hostname else []])):
          xmpp_bot.process(block=True)
      else:
          logging.getLogger(__name__).error('Unable to connect', exc_info=True)
docs: Optional parameters
          * ``hostname`` (if not from jid)
          * ``port``
          * ``path_to_certs``
          * ``mtype`` ('chat' required for Google Hangouts)
  
      To verify the SSL certificates offered by a server:
      path_to_certs = "path/to/ca/cert"
  
      Without dnspython library installed, you will need
      to specify the server hostname if it doesn't match the jid.
  
      For example, to use Google Talk you would need to use:
      hostname = 'talk.google.com'
  
      Specify port if other than 5222.
      NOTE: Ignored without specified hostname