.NET Components for Mobility

Move SMS

Last post 06-18-2009 4:03 AM by pronob. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-18-2009 4:03 AM

    • pronob
    • Not Ranked
    • Joined on 05-14-2009
    • Posts 2

    Move SMS

     Hi

    I am creating a new sms and instead of sending it i am moving it to inbox folder using InTheHand API,

    And it moves my sms to inbox but with 0KB that means it does not store its bodu shoes blank sms.

    What could be the problem?

     

    below is my code

     using HAND_PO = InTheHand.WindowsMobile.PocketOutlook;

    this.HandoutlookSession = new HAND_PO.OutlookSession();

                HAND_PO.SmsAccount account = this.HandoutlookSession.SmsAccount;
                // HAND_PO.SmsMessageFolder sms_folder = account.SentItems;

                // SmsMessage sms = new SmsMessage();
                // sms.Body = "rtrtrtrtrtr";
                if (account == null)
                {
                    SYS_FORM.MessageBox.Show("no account created");
                }
               
                HAND_PO.SmsMessage sms1 = new InTheHand.WindowsMobile.PocketOutlook.SmsMessage("9004679361",@"ssadasdasda");
                HAND_PO.Recipient recpnt = new InTheHand.WindowsMobile.PocketOutlook.Recipient("8479570");
              
                if (sms1 != null)
                {
                    //sms1.Body = "sample message";
                    //sms1.
                   // sms1.From = recpnt;
                    //sms1.Send();
                 
                    sms1.Update();
                   
                    sms1.MoveTo(account.Drafts);
                    MessageBox.Show(sms1.Body);
                  //  sms1.Update();


                }

     

     

    Please some one help me in this or is there any other way to create sms and save it to sms folder?

     

     

    Regds

    Deep

Page 1 of 1 (1 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.