×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    5

    How can i move the sms from Draft into the Outbox

    My SDK is s60_3rd.The code below is mine.But failed.


    TMsvSelectionOrdering selections;
    CMsvEntry* parentEntry = CMsvEntry::NewL( iSmsMtm->Session(), KMsvDraftEntryId, selections );
    CleanupStack::PushL( parentEntry );

    // Move message to Outbox.
    parentEntry->MoveL(entry.Id(),KMsvGlobalOutBoxIndexEntryId);

    Thanks.

  2. #2
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189

    Re: How can i move the sms from Draft into the Outbox

    Quote Originally Posted by chenzhi0205 View Post
    My SDK is s60_3rd.The code below is mine.But failed.


    TMsvSelectionOrdering selections;
    CMsvEntry* parentEntry = CMsvEntry::NewL( iSmsMtm->Session(), KMsvDraftEntryId, selections );
    CleanupStack::PushL( parentEntry );

    // Move message to Outbox.
    parentEntry->MoveL(entry.Id(),KMsvGlobalOutBoxIndexEntryId);

    Thanks.
    check this wiki.
    http://wiki.forum.nokia.com/index.php/SMS_Operations
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    5

    Re: How can i move the sms from Draft into the Outbox

    Quote Originally Posted by RB_Sahu View Post
    Tanks,but there is no way to move sms in that wiki.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: How can i move the sms from Draft into the Outbox

    If you want to send SMS-s, use the InvokeAsyncFunctionL(ESmsMtmCommandScheduleCopy ...) call, which is indeed described in the Wiki article, and shown in SMS-related examples.

  5. #5
    Registered User
    Join Date
    Mar 2009
    Posts
    5

    Re: How can i move the sms from Draft into the Outbox

    Quote Originally Posted by wizard_hu_ View Post
    If you want to send SMS-s, use the InvokeAsyncFunctionL(ESmsMtmCommandScheduleCopy ...) call, which is indeed described in the Wiki article, and shown in SMS-related examples.
    Thanks,i have try that way ,but failed.Code is below:



    serverEntry.ChangeL( entry ); // commit changes
    iSmsMtm->SaveMessageL(); // save message
    iSmsMtm->SwitchCurrentEntryL(entry.Id());



    iSelection->Reset();
    iSelection->AppendL(entry.Id()); // add message to selection
    TBuf8<1> dummyParams; // dummy parameters
    iOperation= iSmsMtm->
    InvokeAsyncFunction(ESmsMtmCommandScheduleCopy,*iSelection, dummyParams,iStatus);

  6. #6
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: How can i move the sms from Draft into the Outbox

    We know that you are failing ? but also interested in knowing the condition of failure. your code is crashing? Giving any panic code? or what?

Similar Threads

  1. Read SMS/ SMS Alert.
    By nirenj in forum General Messaging
    Replies: 3
    Last Post: 2009-01-14, 12:39
  2. SMS stuck in outbox
    By JOM in forum Symbian
    Replies: 4
    Last Post: 2008-04-25, 04:06
  3. Replies: 3
    Last Post: 2007-09-11, 17:56
  4. Nokia 6600: Unable to delete SMS from Draft Mailbox
    By dropscience in forum Symbian
    Replies: 0
    Last Post: 2004-03-25, 14:57
  5. SMS stuck in Outbox :CSendAs
    By alvin_jdc in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-06-03, 03:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×