Location: PHPKode > scripts > SMPP Class > smpp-class/smppexample.php
<?

/*

File: smppexample.php
Implements: exmaple for smppclass.php::SMPPCLass()
License: GNU Lesser Genercal Public License: http://www.gnu.org/licenses/lgpl.html
Commercial advertisement: Contact hide@address.com for SMS connectivity and more elaborate SMPP libraries in PHP and other languages.

*/

/*

Caution: Replace the following values with your own parameters.
Leaving the values like this is not going to work!

*/

$smpphost = "smpp.chimit.nl";
$smppport = 2345;
$systemid = "chimit";
$password = "smpppass";
$system_type = "client01";
$from = "31495595392";

$smpp = new SMPPClass();
$smpp->SetSender($from);
$smpp->Start($smpphost, $smppport, $systemid, $password, $system_type);
$smpp->Send("31651931985", "This is my PHP message");
$smpp->End();

?>
Return current item: SMPP Class