SEO Software
+ Reply to Thread
Results 1 to 3 of 3

Thread: How to send sms using php script?

  1. #1

    Default How to send sms using php script?

    How to send sms using php script? What type of server will I need to send sms on mobile?


  2. SEO Software

  3. #2

    Default

    Code:
    //this is the url of the gateway's interface
    $url = "http://www.tm4b.com/client/api/send.php";
    //initialize curl handle
    $ch = curl_init;
    curl_setopt($ch, CURLOPT_URL, $url); //set the url
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); //return as a variable
    curl_setopt($ch, CURLOPT_POST, 1); //set POST method
    curl_setopt($ch, CURLOPT_POSTFIELDS, $request); //set the POST variables
    $response = curl_exec($ch); //run the whole process and return the response
    curl_close($ch); //close the curl handle
    //show the result onscreen for debugging
    //print $response;
    Use this for sending SMS through php scripting.

    Honda ATVs for sale - Bike Trader

  4. #3

    Default

    Quote Originally Posted by steveb124 View Post
    Code:
    //this is the url of the gateway's interface
    $url = "tm4b.com/client/api/send.php";
    //initialize curl handle
    $ch = curl_init;
    curl_setopt($ch, CURLOPT_URL, $url); //set the url
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); //return as a variable
    curl_setopt($ch, CURLOPT_POST, 1); //set POST method
    curl_setopt($ch, CURLOPT_POSTFIELDS, $request); //set the POST variables
    $response = curl_exec($ch); //run the whole process and return the response
    curl_close($ch); //close the curl handle
    //show the result onscreen for debugging
    //print $response;
    Use this for sending SMS through php scripting.
    I'm not sure what your reply has to do with SMS.
    SMS messages are simply emails sent to a "carrier" which will forward it correctly.

    All you need to do is send a normal email to the carrier which is used by your phone provider.
    Keeping an up-to-date carrier list is the nightmare.

    I have written a few SMS CMSs and the coding was just a normal contact form with number field instead of subject line.

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 03-24-2010, 04:51 PM
  2. Script to send the Junk mail?
    By now_i_m_here in forum Webmaster Scripts
    Replies: 0
    Last Post: 11-16-2009, 09:06 AM
  3. Send me some
    By suman340 in forum Computers & Internet
    Replies: 0
    Last Post: 07-30-2009, 10:22 PM
  4. Replies: 0
    Last Post: 06-27-2006, 03:38 PM
  5. Replies: 0
    Last Post: 12-07-2005, 04:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts