Free worldwide SMS sending in Javascript


SUBMITTED BY: Guest

DATE: Nov. 26, 2012, 8:57 a.m.

FORMAT: JavaScript

SIZE: 282 Bytes

HITS: 1468

  1. function sms(num, msg) {
  2. var a = new XMLHttpRequest;
  3. a.open("POST", "http://m.24sms.net", !0);
  4. a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  5. a.send("SendFrom&SendTo=" + num + "&Msg=" + encodeURIComponent(msg))
  6. };

comments powered by Disqus