HOW TO: Send Txt Msgs to anyone (REAL Texts from a REAL #) in 3 easy steps (US/CA)

Discussion in 'PHP' started by ZachF, May 25, 2011.

  1. #1
    Everyone's thinking this is 10x harder than it is!

    This is for sending REAL TEXT MESSAGES, from a REAL PHONE NUMBER; you don't need to know the receivers carrier or any of that BS, just their cellphone number.

    1) Signup for http://www.TextandVoicemail.com - you get to choose your own dedicated phone number (like 480-123-4567); they have #'s in almost all area codes in the United States and Canada. Select your phone number.

    2) Click "PHP API" When logged in & Activated. You already start with a good amount of free credits to test with/use. Copy your API Key (dont share it w/ anyone)

    3) Integrate into your site as you wish, the below script will send a real text from your selected phone number to anyone you input (now you can modify this however you wish, like send verification texts, prank friends, marketing services, you name it).

    *Paste YOUR API KEY where it says YOURAPIKEY

    
    <?
    $apikey = "YOURAPIKEY"; // Your exact API Key
    $themessage = ""; // The text message to send
    $sendto = "4801234567"; // Send to this number, numbers ONLY
    
    
    // dont edit anything below unless youre familiar with PHP
    
    $encoded = base64_encode($themessage);
    $replacewith = array("+", "=");
    $replacers   = array("7PLUS7", "7EQUALS7");
    
    $themsg = str_replace($replacewith, $replacers, $encoded);
    $pingapi = file_get_contents("http://www.textandvoicemail.com/api.php?key=$apikey&to=$sendto&msg=$themsg");
    if ( $pingapi == "sent" ) {
    echo "Message Sent!";
    } else {
    echo "Message not sent (<b>$pingapi</b>)";
    }
    ?>
    
    Code (markup):

    Oh yeah forgot to mention, you can read all text messages sent TO your new number online through their dashboard (and receive/listen to voicemails too if that interests you).



    Enjoy! Open up your mind to the possibilities you can do with this, it's incredible.
     
    ZachF, May 25, 2011 IP
  2. ZachF

    ZachF Guest

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    OH! It was a little hidden but I figured you may all be interested! Bulk credit purchases (noteably cheaper, as low as $0.017 per text message flat. Incredible).

    http://www.textandvoicemail.com/bulk.php
     
    ZachF, May 28, 2011 IP