Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    396

    Default Sending TEXT messages to cell phone (SMS)

    I worked a solution for a TEXT pageing program to send TEXT messages to a SPRINTPCS service.

    Thought I would share it to see if there are others.

    Code:
    #!/bin/sh
    # pager.sh
    # Al Smith 08.01.2004
    # SPRINT SMS paging program 
    # Requires wget
    # Required arguments are Company PagerNumber Message
    
    FILE=pager.html
    clear
    if [ -z $1 ] || [ -z $2 ] || [ -z $3 ]
    then
            echo "usage: pager.sh CO PIN your message."
            echo "   ex: pager.sh A ########## this is my message."
            exit
    fi
    CO=$1
    PAGER=$2
    MSG=`echo $@ |cut -d" " -f3-`
    #echo $MSG
    
    # Set up the URL for the differnt providers
    SPRINT="http://messaging.sprintpcs.com/textmessaging/composeconfirm?phoneNumber=$PAGER&message=$MSG"
    
    # Write a pager.out file and a $FILE for logging and confirmations
    wget -o pager.out -O $FILE "$SPRINT"
    
    # Here we check our Pager Company (mostly for future use)
    case $CO in
        SPRINT) # search for conformation
            OK="Message Sent"
            grep "$OK" $FILE >/dev/null
            RC=$?
            case $RC in
                0 ) # Success
                    echo Success
                ;;
                *) # Failure
                    echo Failed
                ;;
            esac
    esac
    rm pager.out pager.html
    #
    # End
    #
    Lets work to provide others. Want to contibute?
    Last edited by asmithjr; 08-09-2004 at 12:50 PM.
    -Albert

  2. #2
    Member
    Join Date
    May 2004
    Location
    Eindhoven
    Posts
    57

    Default

    Nice idea!

    Any idea for what countries this works?

    How do you use the script?

    In the past many people used mtnsms.com to send sms messages, have you ever looked into that?

  3. #3
    Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    675

    Default

    Well my cell phone support email and has its own email address with Rogers in Canada. So I just sent a short email to my phone email address and that's it!
    Upload Guardian 2.0 - Sign up for our early beta
    ServerProgress - Server security, consulting and assistance

  4. #4
    Member
    Join Date
    Nov 2003
    Posts
    148

    Default

    Quote Originally Posted by ramprage
    Well my cell phone support email and has its own email address with Rogers in Canada. So I just sent a short email to my phone email address and that's it!
    I've also got the same thing going. As a matter of fact, SprintPCS customers have their own email address. All I do is enter my SprintPCS address under WHM/contact manager where I am using the pager as the "1" priority alert and it works without a hitch..
    ProficientHost
    http://www.proficienthost.com
    Delivering Quality Hosting & Design Services

  5. #5
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Thats nice. My server provider shut the service down because their server couldn't handle the load of mails coming in
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

  6. #6
    Member
    Join Date
    Jun 2003
    Posts
    396

    Default

    This particular script uses the SPRINT PCS website to send pages.

    Many emails arrive entirely to late to be ov any use. that is why the script came about. Yes Sprint does the email thing and sometimes they are hours later.

    The script will use their own website to send pages. It works just as if the user it typing in the message on their site. Now we all know that not all companies provide such a service but for those that do similar scripts can be written.
    -Albert

Similar Threads & Tags
Similar threads

  1. insert text to all messages
    By caeos in forum E-mail Discussions
    Replies: 0
    Last Post: 10-20-2008, 10:39 AM
  2. Replies: 1
    Last Post: 03-28-2008, 06:26 AM
  3. Can the server send out text messages?
    By Jako in forum New User Questions
    Replies: 1
    Last Post: 01-26-2007, 10:04 AM
  4. Cell Phone contact
    By pirch in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-07-2004, 02:49 PM
  5. Q: Problem forwarding to cell phone
    By sesme in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-06-2002, 08:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube