javasmssmppopensmpp

Send long sms via Opensmpp


I use opensmpp library for sending sms, but I cannot find documentation or example of sending long messages. I want to send long messages by splitting and using UDH (because it's sms gate requirement). Where can I find documentation or example for Opensmpp java library?


Solution

  • Good to hear it worked! As a short summary, this would be the way to add additional header information for multipart/concatenated SMS delivery using OpenSmpp:

    SubmitSM smRequest = new SubmitSM();
    smRequest.setEsmClass((byte)Data.SM_UDH_GSM);
    

    The above code was taken from this article about multi-part SMS that includes sample code and extended technical details.