none
Send Text Message(SMS) from sharepoint using Object model

    Question

  • Hi i need to send text message(SMS) using object model.Is there any method available .i just configured text message service in central admin.

    But i cant send from object model.

    i found SpAlert is the only way for this...Is there any other class or method?.

    that should be like SpUtiliy.SendMail().

    Thanks

    Arvind

    Monday, May 02, 2011 1:28 PM

Answers

All replies

  • Yes. See this SDK node:
    Overview of Mobile Messaging Development (http://msdn.microsoft.com/en-us/library/ee537514.aspx)

    Rick - MSFT
    Tuesday, May 03, 2011 2:31 AM
  • Hi

    Thanks for your reply.I followed your reply and created one sample application .and here is the sample code i created


               
                SecureString password = new SecureString();
                password.AppendChar('t');
                password.AppendChar('e');
                password.AppendChar('s');
                password.AppendChar('t');
               

                SPMobileMessagingAccount account = new SPMobileMessagingAccount("OMS", "test services", "username", password);
                if (account.IsValidAccount())
                {
                    SPMobileMessageSmsBuilder smsBuilder = new SPMobileMessageSmsBuilder(account);

                    smsBuilder.AddRecipient("+0000000000000000");
                    smsBuilder.StartTextMessage();
                    smsBuilder.AddChunk("Hai");
                    smsBuilder.EndTextMessage();              
                }
            }

     

     

     

    But i got the Error "The ServiceProvider does not support SMS".Please advise

    Thanks

    Arvind

     

     

     


    Saturday, May 07, 2011 9:46 AM
  • But i got the Error "The ServiceProvider does not support SMS".Please advise

    Thanks

    Arvind


    I advise that you get a service provider that supports SMS. :-)

     


    Rick - MSFT
    Sunday, May 08, 2011 1:20 AM
  • Hi

    I used SMS supported provider only..Even though i got the error..I got SMS Message from share point.But i got error when i have using by code.

    So I want to ensure that the above code is correct or not..Please advice

    Thanks

    Arvind

     

     

    Monday, May 09, 2011 4:38 AM