parameters: (self, text, recipient, sender, gateway_reference='default',
             document_relative_url=None, activate_kw=None)
docstring: Send the message
  
      gateway_reference: send message throught the gateway with this reference.
      document_relative_url (optional) : allows to send back result to a document
      activate_kw (optional) : Call SMSTool_afterSend if founded in activity with
                              message_id and document_relative_url
docstring_summary: Send the message
docstring_tokens: Send the message
function: def send(self, text, recipient, sender, gateway_reference='default',
             document_relative_url=None, activate_kw=None):
      """Send the message
  
      gateway_reference: send message throught the gateway with this reference.
      document_relative_url (optional) : allows to send back result to a document
      activate_kw (optional) : Call SMSTool_afterSend if founded in activity with
                              message_id and document_relative_url
      """
  
      gateway = self._findGateway(gateway_reference)
  
      message_id = gateway.send(
              text=text,
              recipient=recipient,
              sender=sender)
  
      if getattr(self, 'SMSTool_afterSend'):
        # We need to use activities in order to avoid any conflict
        send_activate_kw = {'activity':'SQLQueue'}
        if activate_kw is not None:
          send_activate_kw.update(**activate_kw)
        self.activate(**send_activate_kw).SMSTool_afterSend(
                message_id,
                document_relative_url=document_relative_url,
                gateway_relative_url=gateway.getRelativeUrl())
function_tokens: def send ( self , text , recipient , sender , gateway_reference = 'default' , document_relative_url = None , activate_kw = None ) : gateway = self . _findGateway ( gateway_reference ) message_id = gateway . send ( text = text , recipient = recipient , sender = sender ) if getattr ( self , 'SMSTool_afterSend' ) : # We need to use activities in order to avoid any conflict send_activate_kw = { 'activity' : 'SQLQueue' } if activate_kw is not None : send_activate_kw . update ( * * activate_kw ) self . activate ( * * send_activate_kw ) . SMSTool_afterSend ( message_id , document_relative_url = document_relative_url , gateway_relative_url = gateway . getRelativeUrl ( ) )