×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    66

    How to read body of the outbox message?

    How to read body of the sms outbox message?

  2. #2
    Regular Contributor
    Join Date
    Jan 2005
    Posts
    63
    Hi,
    go through the CMsvEntry class iDescription data memeber, which gives the message, but before that u shud use GetEntryL() with "KMsvGlobalOutBoxIndexEntryId" as parameter.

    All The Best

    Amit

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    66

    yes, it will read first 32 characters of the message body

    Hi!
    Thank you. It will read first 32 characters of the message body.

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,142
    remember to load the message before trying to read the body, othervise it is propably not right.

    yucca

  5. #5
    Regular Contributor
    Join Date
    Mar 2007
    Location
    earth
    Posts
    52

    Smile Re: How to read body of the outbox message?

    Hi,
    I think iDescription just contain the first 32 byte
    so you need to use another way :
    Code:
    CMsvStore* outboxStore= entry->ReadStoreL();
    CleanupStack::PushL(outboxStore);
    if (outboxStore->HasBodyTextL())
    	{
    	BufC<50> aText(entry1.iDetails); // Gives u phone Number
    	TBuf16<20> msg;
    	msg.Copy(_L("\\"));
    	msg.Append(aText);
    	msg.Append(_L(".txt"));
    	CRichText& richText= iSmsMtm->Body();
    	outboxStore->RestoreBodyTextL(richText);
    	const TInt length = richText.DocumentLength();
           	SMSContent.Copy(richText.Read(0,length)); // Gives u actual content(Body) of SMS
    	}

  6. #6
    Registered User
    Join Date
    Mar 2004
    Posts
    66

    Smile Re: How to read body of the outbox message?

    Thank you very much!

Posting Permissions

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