def _send(self, message):
charset='<STR_LIT>'<EOL>params = {<EOL>'<STR_LIT:action>' : '<STR_LIT>',<EOL>'<STR_LIT:user>' : self.get_username(),<EOL>'<STR_LIT:password>' : self.get_password(),<EOL>'<STR_LIT>' : message.from_phone,<EOL>'<STR_LIT:to>' : "<STR_LIT:U+002C>".join(message.to),<EOL>'<STR_LIT:text>' : message.body,<EOL>'<STR_LIT>' : charset,<EOL>'<STR_LIT>' : <NUM_LIT:1>,<EOL>'<STR_LIT>': int(math.ceil(len(message.body) / <NUM_LIT>))<EOL>}<EOL>req = urllib2.Request(SMSGLOBAL_API_URL_SENDSMS, urllib.urlencode(params))<EOL>result_page = urllib2.urlopen(req).read()<EOL>results = self._parse_response(result_page)<EOL>if results is None:<EOL><INDENT>if not self.fail_silently:<EOL><INDENT>raise Exception("<STR_LIT>" + result_page + "<STR_LIT:]>")<EOL><DEDENT>return False<EOL><DEDENT>code, sendqmsgid, msgid = results<EOL>if code != '<STR_LIT:0>':<EOL><INDENT>if not self.fail_silently:<EOL><INDENT>raise Exception("<STR_LIT>" % (result_page, results))<EOL><DEDENT>return False<EOL><DEDENT>else:<EOL><INDENT>logger.info('<STR_LIT>' % (<EOL>message.to,<EOL>message.from_phone,<EOL>code, <EOL>sendqmsgid, <EOL>msgid,<EOL>message.body<EOL>))<EOL>return True<EOL><DEDENT>
A helper method that does the actual sending.