I don't know why my MMS doesn't have SMIL file in attachment when I create MMS. Could anyone tell me? Also in MMSExample, they don't have SMIL file in attachment as well.
I think u r using CreateAttachmentL () method to create the attachment. This is not referenced by by the SMILE part.So try to use CreateAttchment2L rather than that one.As I used this and it was working nicely for me.Hope same for u.
I called CreateAttachment2L() and then SaveMessageL(), but it's still not working for me. It sent only the attachment(text, jpg, sound) and the smil file is not created. What's wrong?
Now I can create attachments but not a smil file and send, but why the size of the attachments is still the same(not like messaging app which reduces the file size).
I was facing the same problem. Try to create Smil attachment as text. So, you will use iMmsClient->CreateTextAttachment(smilId, smilBodyTxt) instead of CreateAttachment2L(), then set the smil attachment as message root: iMmsClient->SetMessageRoot(smilId). Finally, set its type to "application/smil": iMmsClient->SetAttachmentType(smilId, KSmilAppType). Don't forget to SaveMessageL() after you finish creating message.
At least, this solution works for me
Regards,
Halim
I'm Java(nese). I live in Java. I speak Java. But I don't write my code in Java.
  Hey can you pls tell me how r u creating your Smile file .Are you creating it manually by using the CreateTextAttachment.
 As I think this is an alternative.But messaging Api provides a Smile file by default .And I think this we can get by using the CreateAttachment2L();
 Pls do correct me if something is wrong.Also pls let me know how messaging Api reduce the size of Attachments and how much as I have no idea about this .I want to test my app again to keep this point in mind.
Ofcourse you have to write your own SMIL file and attach it manually. SMIL file provides instructions about how to present the other media objects in that message. Here's a link,
The default MMS composer uses image/ video compression internally to reduce the size of MMS, as the maximum size of MMS in MMS 1.0 can be upto 100 KB and in MMS 2.0 the limit is 300KB. you'll have to explicitly do image/video compression. Take a look at CImageEncoder/CImageDecoder.
  Can you pls tell me one thing more that ? The Smile file which is createdby default.As described in "Developing Series 60" that
"Using CreateAttachment2L ensures that the image will be referenced in message's SMILE part and included as a visible part of the presentation received by the addressee. Using CreateAttachmentL() will result in a binary attachment which is not referenced by the SMILE part"
Now here I have some doubts .What I am interpreting with these lines that its a provision provided by MTM that we can create our own SMILE file rather then using that one which is created by MTM.
If I am right here then it means one should get default SMILE by using CreateAttachment2L.
Pls do correct me if I am wrong here as I want to do clear my confusion.
Forum posts: 43
hi Peera
I think u r using CreateAttachmentL () method to create the attachment. This is not referenced by by the SMILE part.So try to use CreateAttchment2L rather than that one.As I used this and it was working nicely for me.Hope same for u.
Thanks
Forum posts: 11
Forum posts: 43
 Like this I cann't tell u the reason but what can I do only is that I m giving u mine code as I told u its working for me.
TMsvId attachmentId = KMsvNullIndexEntryId;
ptrMmsMtm->CreateTextAttachmentL(attachmentId,KMsgBody,KTextfFileName);
ptrMmsMtm->CreateAttachment2L(attachmentId, KAttachmentImageFilename);
ptrMmsMtm->SetMessageRootL(attachmentId);
indexEntry.SetReadOnly(ETrue);
ptrMmsMtm->SaveMessageL();
indexEntry.SetInPreparation(EFalse);
indexEntry.SetVisible(ETrue);
ptrMmsMtm->Entry().ChangeL(indexEntry); //commit changes
Hope so it'll help u .Try this one
Thanks
Forum posts: 11
Thank you very much for your help. I've tried your code but there's no smil file created in attachment.
Forum posts: 43
And if u get the reason then let me knw also.I also want to knw.
Thanks.
Forum posts: 11
Thanks...
Forum posts: 8
I was facing the same problem. Try to create Smil attachment as text. So, you will use iMmsClient->CreateTextAttachment(smilId, smilBodyTxt) instead of CreateAttachment2L(), then set the smil attachment as message root: iMmsClient->SetMessageRoot(smilId). Finally, set its type to "application/smil": iMmsClient->SetAttachmentType(smilId, KSmilAppType). Don't forget to SaveMessageL() after you finish creating message.
At least, this solution works for me
Regards,
Halim
I'm Java(nese). I live in Java. I speak Java. But I don't write my code in Java.
Forum posts: 43
  Hey can you pls tell me how r u creating your Smile file .Are you creating it manually by using the CreateTextAttachment.
 As I think this is an alternative.But messaging Api provides a Smile file by default .And I think this we can get by using the CreateAttachment2L();
 Pls do correct me if something is wrong.Also pls let me know how messaging Api reduce the size of Attachments and how much as I have no idea about this .I want to test my app again to keep this point in mind.
Thanks.
Forum posts: 235
http://www.symbian.com/developer/techlib/v70sdocs/doc_source/devguides/cpp/Messaging/MMS/format.html
The default MMS composer uses image/ video compression internally to reduce the size of MMS, as the maximum size of MMS in MMS 1.0 can be upto 100 KB and in MMS 2.0 the limit is 300KB.
you'll have to explicitly do image/video compression. Take a look at CImageEncoder/CImageDecoder.
Vink
Forum posts: 43
  Can you pls tell me one thing more that ? The Smile file which is createdby default.As described in "Developing Series 60" that
"Using CreateAttachment2L ensures that the image will be referenced in message's SMILE part and included as a visible part of the presentation received by the addressee. Using CreateAttachmentL() will result in a binary attachment which is not referenced by the SMILE part"
Now here I have some doubts .What I am interpreting with these lines that its a provision provided by MTM that we can create our own SMILE file rather then using that one which is created by MTM.
If I am right here then it means one should get default SMILE
by using CreateAttachment2L.
Pls do correct me if I am wrong here as I want to do clear my confusion.
Thanks.
I'll be greatefull for your s response.