When successfully installing kannel on the system the server listens to a particular ports. On that port the request is send. So if you want to send SMS you can send it by making use of the PHP script using the fopen command. It will connect to a particular port which is specified in the code. The code of fopen command is given below:
Code:
#!/usr/bin/php -q
<?php
$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd))
{
$email .= fread($fd, 1024);
}
fclose($fd);
mail('you@yoursite.com','From my email pipe!','"' . $email . '"');
?>
Bookmarks