×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2003
    Location
    Paris
    Posts
    6

    Getting sender and subject from received MMS

    Hi,
    I am implementing a Serie60 platform1 tool that can programmatically send/received MMS. The sending works fine, and I get a notification (call back) when an MMS is received... This is fine.

    However, I am facing one major problem, and despite reading of all possible docs, I cannot find a solution : How to extract the Subject and Sender phone number ?

    In the usual CMmsClientMtm HandleSessionEventL call back I tried different things :

    First, filter the messages :
    case EMsvEntriesCreated:
    // get new entries
    for(TInt i = 0; i <
    entries->Count();
    i++)

    if(msvEntry.iMtm == KUidMsgTypeMultimedia) // message is a MMS

    First try :
    ------------
    Use the Sender and SubjectL api from the CMmsClientMtm

    iMmsMtm->SwitchCurrentEntryL(msvEntry.Id());
    iMmsMtm->Sender();
    iMmsMtm->SubjectL());

    Both are ALWAYS empty string !

    Second try,
    ---------------
    I use the TMsvMmsEntry attributes :
    TMsvMmsEntry mmsEntry(entry->Entry());

    msvEntry.iDescription;
    msvEntry.iDetails;

    BOTH always contain garbage...


    This seems to be a very obvious thing to do. However, no documentation shows any example of this. Again, I can't get this to work.
    Any help would be really appreciated... my customer's waiting !


    Thanks,
    Amedee Potier

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    19

    Could u find out the solution

    Hi ,
    I have the same problem could you find out the solution
    Pl Help me out
    Anupam

  3. #3
    Registered User
    Join Date
    Dec 2003
    Location
    Paris
    Posts
    6

    Need to load the message first !

    It eventually worked by invoking the following :

    o Switch the context :
    SwitchCurrentEntryL(entry);

    o Load the message :
    iMmMtm->LoadMessageL();

    o Now get the values :
    TMsvEntry tEntry = iMmsMtm->Entry().Entry();
    tEntry.iDescription // subject
    tEntry.iDetails // phone number

    Hope this help,
    Amedee

  4. #4
    Registered User
    Join Date
    May 2005
    Posts
    25
    But if I want to know real phone number (like +3743534). How I can to know it?

Posting Permissions

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