Sending SMS using PHP

29 views
asked Jun 17, 2013 in General by dolphin111 (320 points)
Hi,

I have a PHP script for sending an SMS to a provided Mobile number. I recently asked my provider for an SMPP so that I can connect to SMSC server. Now how can I send an SMS with the detailed provided (such as user name, etc,,) via PHP ?
the  mobile number is stored in $MyMobile and the body is in $MyBody
This is th PHP Code:
<?

$MyMobile = xxxxxxxx;
$MyBody = Hi;

//Here I need to connect to SMSC server via SMPP

// and then send SMS to $MyMobile containing $Mybody as a message

//end connection


?>




any advice is appreciated
Thanks

1 Answer

0 like 0 dislike
answered Jun 17, 2013 by TopNet (10,360 points)
this should help http://www.phpclasses.org/package/1373-PHP
www.youtube.com/watch?v=fGFhy0APrLw
...