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:
__ASSERT_ALWAYS(iMmsMtm !=NULL, User::Leave(KErrNotReady));
// Setting recipients
iMmsMtm->AddAddresseeL( iRecipient->Des() ); // this is infact regarded as the sender nbr.
// Setting attachments (message parts)
TMsvId newAttId = KMsvNullIndexEntryId;
attachmentFile = ( _L("c:\\test.smil"));
content = _L8( "application/smil" );
attachmentFile = (L("c:\\test.png"));
content = _L8( "image/png" );
iMmsMtm->SetAttachmentTypeL( newAttId, content );
// Set subject
// Save MMS headers
// 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.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
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?