×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Dec 2006
    Posts
    161

    How to capture the number of the an sms received

    Hi guys!

    I have here my code that captures the a SMS message that I recieved....


    /*CMsvEntry accesses and acts upon a particular Message
    Server entry */
    CMsvEntry* iMsvEntry;
    iMsvEntry = CMsvEntry::NewL(*iSession,
    KMsvGlobalInBoxIndexEntryId,TMsvSelectionOrdering());
    CleanupStack::PushL(iMsvEntry);
    // Set entry context to the new message
    iMsvEntry->SetEntryL(aEntryId);
    /* Check the type of the arrived message and that the
    message is complete.only SMS are our consern */
    if(iMsvEntry->Entry().iMtm != KUidMsgTypeSMS ||
    !iMsvEntry->Entry().Complete())
    {
    CleanupStack::PopAndDestroy(iMsvEntry);
    return;
    }

    ////////////////////// I don't know how here //////////////////////
    /// how can i get the number of the of the message that ///////
    /// i recieved ////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////
    what I want to do on that part is to get the number of the message that i received so can call a function to reply on that same number.

    please help me... thanks

  2. #2
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: How to capture the number of the an sms received

    hi,

    try this

    CSmsHeader& header = iSmsMtm->SmsHeader();

    TPtrC RecvNum = header.FromAddress();
    const TDesC& GetphoneNumber = RecvNum ;


    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  3. #3
    Regular Contributor
    Join Date
    Dec 2006
    Posts
    161

    Re: How to capture the number of the an sms received

    Ok thanks mateen_maldar... i willl try it... thanks again

Similar Threads

  1. Replies: 2
    Last Post: 2007-11-10, 13:19
  2. Retreiving the number of the sender of an sms
    By christee in forum Symbian
    Replies: 1
    Last Post: 2006-04-13, 13:13
  3. Replies: 1
    Last Post: 2003-09-15, 02:29
  4. send and received SMS via VB
    By soonbee in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2003-03-28, 05:21
  5. SMS received with OtherEndAddress Corrupt
    By win4dk in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-08-06, 02:11

Posting Permissions

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