×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    48

    how can a phone ID be retrieved from SMS

    Is it possible to get the sender's phone number from an SMS message? If so, is it located in the header? Where???

    Thanks

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    157

    RE: how can a phone ID be retrieved from SMS

    You can use the below information for getting the sender address for messages sent by GDSMS, we haven't tried with other applications.

    TMsvEntry msvEntry = (iSession->GetEntryL(aEntryId))->Entry();

    msvEntry.iDetails; // this gives the number

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    55

    RE: how can a phone ID be retrieved from SMS

    Create the MTM for SMS(KUidMsgTypeSMS), switch to the required entry. Cast the MTM to the CSmsClientMtm class and call the RestoreServiceAndSettingsL() function, then get the SMS header using the SmsHeader() function. The SMS header contains the sender address. You can retrieve it using the FromAddress() function.

    To use the CSmsClientMtm and the CSmsHeader classes include the smsclnt.h and the smuthdr.h files.

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    35
    And what .lib must i link to use CSmsClientMtm ?

  5. #5
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    196
    Unfortunately CSmsHeader can't be used in current SDK version. It is unavailable due to other headers withdrawn from the SDK.

    Ari / Forum Nokia

  6. #6
    Registered User
    Join Date
    Mar 2003
    Location
    Czech rep.
    Posts
    24
    msvEntry.iDetails contains the name of the message. It might be the phonenumber but if there is a ContactCard for it, "iDetails" contains the name of the card. Is there a way to get the phonenumber?

    thanks

    Michal

Posting Permissions

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