What exactly do you mean by "sample code of receiving MMS"? Using the sample MMS for Nokia you can send MMS and see them in the emulator (the emulator will notify that a new MMS has arrived). Dio you want to make your listener for incomming mms?
I think receiving MMS-message is something a little bit more tricky than just receiving SMS. Are you interested to capture WAP Push notification, which tells about "the instructions" where the MMS-message is and other meta data or capturing the real MMS-message instead?
One developer said, that it is somehow protected so, that external applications are not able actually deal with MMS-messages, only "MMS viewer" and I didn't had opinion at that time, so I didn't investigate the whole issue. Was that comment valid or have you found some way to receive MMS-messages?
But since MMS are first received as a WAP push notifications and then the MMS is pulled from the server, will listening to the Messaging server alone solve my problem.
In practice, the WAP Push notification appears in the Messaging Server (and in the file system), but it is going to be processed immediately. I was able to check the file via shutting down the phone while it was launching the GPRS to get the MMS. I do not know wether you can interrupt the download from software and process the stub manually.
I have made an application that will scan the Inbox for my MMSes. I can read the messages and also the path of the attachments stored in the filesystem.
The MMS attachments are stored somewhere in the "c://system/Mail" folder.