Posted By

smsmatrix on 07/18/10


Tagged

php send sms gateway


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hobbyman


Send SMS via www.smsmatrix.com SMS Gateway using PHP


 / Published in: PHP
 

URL: http://www.smsmatrix.com/?sms-gateway

Send SMS via www.smsmatrix.com SMS Gateway using PHP See more examples at SMS/Voice/TTS Gateway

  1. <?php
  2. $URL = 'http://www.smsmatrix.com/matrix';
  3. $PHONE = '12506063167'; // comma separated list of phone numbers
  4. $USERNAME = urlencode ('[email protected]');
  5. $PASSWORD = urlencode ('pass72727');
  6. $TXT = urlencode ('This is a test, pls ignore');
  7.  
  8. $Q = "$URL?username=$USERNAME&password=$PASSWORD&phone=$PHONE&txt=$TXT";
  9.  
  10. $res = implode ('', file ($Q));
  11. echo "Matrix API Response :\n$res\n";
  12. ?>

Report this snippet  

You need to login to post a comment.