code: def send(sms_to, sms_body, **kwargs):
      
      headers = {
          "Content-type": "application/x-www-form-urlencoded",
          "User-Agent": "DBMail/%s" % get_version(),
          'Authorization': 'Basic %s' % b64encode(
              "%s:%s" % (
                  settings.TWILIO_ACCOUNT_SID, settings.TWILIO_AUTH_TOKEN
              )).decode("ascii")
  
      }
  
      kwargs.update({
          'From': kwargs.pop('sms_from', settings.TWILIO_FROM),
          'To': sms_to,
          'Body': from_unicode(sms_body)
      })
  
      http = HTTPSConnection(kwargs.pop("api_url", "api.twilio.com"))
      http.request(
          "POST",
          "/2010-04-01/Accounts/%s/Messages.json" % settings.TWILIO_ACCOUNT_SID,
          headers=headers,
          body=urlencode(kwargs))
  
      response = http.getresponse()
      if response.status != 201:
          raise TwilioSmsError(response.reason)
  
      return loads(response.read()).get('sid')
docs: Site: https://www.twilio.com/
      API: https://www.twilio.com/docs/api/rest/sending-messages