I've downloaded MMS SMIL Inbox Example v1.0 from Forum Nokia website. It consists of one class which I've included in simple program. I'm trying to insert simple MMS message into the device's Inbox. When I call the appropiate function the message appears as new message in the device's Inbox. This works also in the emulator. But when I'm trying to open the message from the Inbox, both the device and the emulator, say "Messaging: Not supported (-5)" with a horrible, but ah so familiar, beep

I've edited the message inserting function to its bare minimum but the results are the same.. I've also written simple SMIL file which I've included in the message with the same results.

Here's the actual function that inserts messages:

TBool CMessagingManager::CreateNewMessageIntoInboxL()
{
__ASSERT_ALWAYS(iMmsMtm !=NULL, User::Leave(KErrNotReady));
__ASSERT_ALWAYS(iSession!=NULL, User::Leave(KErrNotReady));

CreateNewMessageL(KMsvGlobalInBoxIndexEntryId);

// Setting recipients
iMmsMtm->AddAddresseeL( iRecipient->Des() ); // this is infact regarded as the sender nbr.

// Setting attachments (message parts)
TMsvId newAttId = KMsvNullIndexEntryId;
TBufC8<20> content;
TFileName attachmentFile;

attachmentFile = ( _L("c:\\test.smil"));
iMmsMtm->CreateAttachment2L(newAttId, attachmentFile);
iMmsMtm->SetAttachmentNameL(newAttId, _L("test.smil"));
content = _L8( "application/smil" );
iMmsMtm->SetAttachmentTypeL(newAttId, content);
iMmsMtm->SetMessageRootL(newAttId);

attachmentFile = (L("c:\\test.png"));
iMmsMtm->CreateAttachment2L(newAttId, attachmentFile);
iMmsMtm->SetAttachmentNameL(newAttId, _L("test.png"));
content = _L8( "image/png" );
iMmsMtm->SetAttachmentTypeL( newAttId, content );

// Set subject
iMmsMtm->SetSubjectL(_L("Test"));

// Save MMS headers
iMmsMtm->SaveMessageL();

// Set InPreparation to false & save entry details
TMsvEntry ent = iMmsMtm->Entry().Entry();
ent.SetInPreparation(EFalse); // Message can't be opened if it is InPreparation
ent.SetVisible(ETrue);
ent.SetUnread(ETrue);
ent.SetNew(ETrue);
ent.SetComplete( ETrue );
ent.SetReadOnly(EFalse); // Note: Can't send when read only
ent.iDate.HomeTime(); // Time when received
ent.iMtmData1 = KMmsMessageMRetrieveConf | KMmsMessageMobileTerminated; // this defines MT message

iMmsMtm->Entry().ChangeL(ent);

return ETrue;
}

Hmmm.. There's no problems _inserting_ the message but _opening_ it always fails.. Of course without Messaging sources its impossible to debug it. Any ideas anyone?