Send SMS messages from your Website using PHP
Attila Szabó wrote a simple PHP class for sending SMS messages through the smsBug gateway. To send a single SMS message and receive the number of credits left, you only need to include two classes:
include('services/smsgateway/class.Transport.php');
include('services/smsgateway/class.SmsGateway.php');
// Send the message
try {
$oSmsGateway = new SmsGateway();
$oSmsGateway->SendSingleSms("421xxxxxx", "Hello");
unset($oSmsGateway);
} catch(TransportException $e) {
$error = 'SMS proxy error: '. $e->getMessage();
} catch(Excption $e) {
$error = 'Unexpected error: '. $e->getMessage();
}
More info: Send SMS messages from your Website
Advertisement
Romain Pouclet (aka Palleas) has written a class to use the French telecom Orange firm API services. Here is an
example of his work (in french) .
++
Hugo.
Hugo
September 11, 2008 at 10:36 pm
[...] Send SMS messages from your Website using PHP: [...]
Miami Web Servers
September 12, 2008 at 12:57 am
Thanks Hugo
Federico
September 12, 2008 at 8:27 am