.NET Components for Mobility

SMS not sent ??

Last post 01-15-2008 6:17 PM by tom@t-network.be. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-14-2008 2:52 PM

    SMS not sent ??

    Hi,

    Following code does nothing, what do I wrong?

    using (OutlookSession session = new OutlookSession) {

        SmsMessage sms = new SmsMessage("+32444555444", "Hello world!");

        session.SmsAccount.Send(sms);

        sms.Update();

        sms.MoveTo(session.SmsAccount.SentItems); 

     Nothing happens, ran it through the debugger and everything gets executed, but again, no sms is sent, nothing is in SentItems (saving sent msg is on)

    Kr

    Tom 

     

    Filed under: ,
  • 01-15-2008 2:53 AM In reply to

    Re: SMS not sent ??

    If it is successful you do not need to call Update or MoveTo - if the device is set to save a copy in sent items this will happen during Send. What device are you executing this code on?

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 01-15-2008 3:35 AM In reply to

    Re: SMS not sent ??

     Hi,

     I use windows mobile 5.0 on a HTC4350. Accessing my email account and sending emails works, only SMS is not working?

    Kr

    Tom 

    Filed under:
  • 01-15-2008 4:19 PM In reply to

    Re: SMS not sent ??

    Have you tried simplifying your code to:-

    using (OutlookSession session = new OutlookSession) {

        SmsMessage sms = new SmsMessage("+32444555444", "Hello world!");

        sms.Send();

    }

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 01-15-2008 6:17 PM In reply to

    Re: SMS not sent ??

    Hi, Cleaned my project, recompiled and it is working now. On issue, save in sentitems is on but sms is not put in sentitems box. But that's not needed for now. Kr Tom
Page 1 of 1 (5 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.