DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Send SMS Via Www.smsmatrix.com SMS Gateway Using PHP
See <A HREF="http://www.smsmatrix.com/?sms-gateway">SMS Gateway</A> for more detailed examples.
<?php
$URL = 'http://www.smsmatrix.com/matrix';
$PHONE = '12506063167'; // comma separated list of phone numbers
$USERNAME = urlencode ('user@hotmail.com');
$PASSWORD = urlencode ('pass72727');
$TXT = urlencode ('This is a test, pls ignore');
$Q = "$URL?username=$USERNAME&password=$PASSWORD&phone=$PHONE&txt=$TXT";
$res = implode ('', file ($Q));
echo "Matrix API Response :\n$res\n";
?>





