As promised yesterday, I'll start cleaning up my code a bit preparing to post it here.
Here's mkmms. It's a minimalistic application that allows you to create an MMS and attach ONLY 1 file which can be jpg, png, gif or txt (I hadn't tested anything beyond jpg).
Note that it's alpha quality.
There's also a parser that will print some info about any MMS passed as an argument but it's commented out.
Use it like this:
./mkmms <to address> /home/mohammed/me.jpg m-send-req.mms subject
It needs QtCore and only that.
Don't ask about the license. It uses some bits from Qt extended, some from mmsdec and some are my own but you should be OK if you assume GPL for now.
I wrote it to make sure the MMS library works and to generate MMS messages to test.
Next, I need to clean up my sending code and post it.
Now a bit about MMS:
MMS is just a bunch of attachments cooked together using the WSP encapsulation protocol.
A typical MMS consists of a header and a body. The header contains the From, To, CC, BCC, Subject, ... parts.
The body contains the actual parts. A part can be a video, an image, some text or anything (Not exactly sure).
Now there's something called SMIL out there.
SMIL is some sort of XML that tells the "phone" how to render the MMS. MMS can contain a SMIL part and that's usually the first part of the body (I think the standard demands it being the first part) but it doesn't have to be there.
For now, I'll ignore something called SMIL at all.
Next: Sending MMS to the actual gateway.