Multi SMS recipients on the same message.

Discussion in 'Basic4ppc Wishlist' started by markbarrett_1, Jan 25, 2009.

  1. markbarrett_1

    markbarrett_1 Member Licensed User

    Hi,

    Is it possible to specify multiple phone numbers on a sms message?

    Sms.New1("987-654321,123-456789","This is the message body.")

    I've tried all sorts of combinations for the phone number from ; seperated, in <> etc. So I'm wondering if its

    a) possible
    b) what the syntax is.

    I currently have my sms in a while loop with a single phone number per loop, but I'm looking at trying to speed it up by having multiple recipients on the one SMS message.

    Thanks in Advance.

    Cheers.

    M
     
  2. Cableguy

    Cableguy Expert Licensed User

    a: YES
    b:

    Code:
    Sub Globals
    DIM number(3'-3 is the total amount of numbers to store... if this is not a fixed value, use an arraylist control
    End Sub

    Sub App_Start
    For x=0 to arraylen(numbers())-1
    Sms.New1(Number(x),"This is the message body."
    Next
    End Sub
    SMS have always been targeted to one single recepient....
    What the API does when sending multiple recipients is exactly what we do...cicle trought a series of numbers...
    The speed will depend exclusevly of your device speed...
     
    Last edited: Jan 25, 2009
  3. markbarrett_1

    markbarrett_1 Member Licensed User

    Hi Cableguy,

    Thanks for the response. My code is already very similar to the sample you provided.

    The time I'm wanting to cut out is the time the phone has to do the protocol negotation with the mobile phone carrier. If you send an SMS via the phone (out of the box wm5/6 function) with 10 recipients, it takes almost no additional time than sending to one. I can only imagine underneath the covers the SMS protocol is negotiated, then all the numbers are sent and then the message that is going to go with those numbers. That cuts down on mobile phone latency as every time you start and stop a session, you burn tons of time.

    Now in the basic4ppc case, I would imagine that everytime you do a sms1.new() you are building a new session to your mobile phone carrier and that is what is taking the time (sms1.new appears to be a syncronous call).

    If the above is true a feature request maybe to have multiple phone numbers in a single message.

    Cheers.

    M
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    That is currently not possible. I've moved this thread to the 'Wishlist' sub-forum.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice