I recently had to implement a custom sms function on our website and found the useful service www.dotgo.com. It's free ... it looks like it was created by several PhDs as a kind of illiterate messaging engine (think of the http request-response model).
For its operation, you have configured the index.crml file (similar to index.html, php, etc.). Our view is as follows (sorry that all this is put on one line ... with some problems that it displays otherwise):
<?xml version="1.0" encoding="UTF-8"?><cmrl xmlns:dotgo="http://dotgo.com/cmrl/1.0"><match pattern="*"><engine href="http://www.bulbstorm.com/sms/flashbulb.php"/></match></cmrl>
On our site, the index file, in turn, refers to the file /sms/flashbulb.php, which (with the exception of opening and closing php tags) looks like this:
$wordArray = explode(' ',$_REQUEST['sys_argument']); $username = strip_tags($wordArray[0]); $messageBody = str_replace($username.' ', '', $_REQUEST['sys_argument']); require_once 'Database.php'; $dbh = new Database('bulbstorm'); $args = array($username, $messageBody); $dbh->execMysqlProc('uspAddFlashbulb', $args); print "<message><content>Bulb received and saved to your account</content></message>";
In any case, I only include code to give some idea of how the framework works and how little code to write to get something functional.
There are some limitations. The main thing is that everything is user initiated. Therefore, if you primarily want to send outgoing messages that are not preceded by your user sending a message to your site in order to “receive” a response message, this may not be what you want. However, we have been working on what we are doing. One of the founders even personally answered the question by e-mail and was very useful.
One of the functions that we have not yet used, but examined their subscription functionality ... where users can configure it so that the dotgo system periodically polls the page on your site by sending an SMS message to them according to the schedule specified by the user. Again, I did not take it that far, but I thought it was interesting.
codemonkey Jan 19 '09 at 20:09 2009-01-19 20:09
source share