Hi,
I'm after some advice of how to create an MMS file that I can send out via an SMS gateway.

I am using the Clickatell gateway (http://www.clickatell.com) and have got a script on my webserver that MMSs are being sent to from a mobile phone. This script parses the MMS and stores it on the server into multiple parts.

I'd like to know if its possible to create a .mms file from the content received from the mobile phone.

I've looked on this site and the web, and have tried looking for sample MMS notification files (.mms files) but I can't find any.

Has anyone tried or done this before and can help me please?

Thanks in advance,
Nathan

    I'll be sending the mms notification by a HTTP call, for example something like this:

    http://api.clickatell.com/mmsNotification/user=x&pass=x&to=xxxxxx&mmsURL=http://myServer.com/mmsStore/x.mms

    This call will then send an MMS notification message to the number specified in the to parameter of the url.

    I'd like to know how to make the x.mms part that is referenced in the url.

    When the MMS is being sent from a mobile to my server, could I simply just stream the $HTTP_RAW_POST_DATA into a file and call it x.mms?

    Edit: I've just updated my question to hopefully make problem clearer!

    Thanks

      How much are you paying for this service? Not a lot, I'd guess, if they can't provide any technical support to their customers.

        To be honest, I don't think they would support something they don't provide.
        I can send the mms notification by using the url they provide from this page: link

        But it's the creation of the .mms file that I'm unsure about. This is nothing to do with their system, as the .mms file is the mms that is saved onto my server when a mobile phone connects to it when sending the mms.

        So therefore my questions are:

        Can I simply save the data stream from $HTTP_RAW_POST_DATA and save it as a .mms file?
        If not, has anyone saved or created an .mms file before and can give me some pointers please?

        Thanks v much

          Did you read my first post?

          ...have got a script on my webserver that MMSs are being sent to from a mobile phone. This script parses the MMS and stores it on the server into multiple parts.

          I know from searching the internet that it's possible to create MMS messages, but I'm after advice on the format, headers, layout and encoding information needed. I've got two documents from the OMA (Open Mobile Alliance) which give details of the structure of MMS messages. I was wondering if someone has done anything in PHP related to encoding an MMS message?

            ducey wrote:

            I'm after advice on the format, headers, layout and encoding information needed.

            Which should all be in those

            two documents from the OMA (Open Mobile Alliance)

            seeing as how they

            give details of the structure of MMS messages

            .

              Write a Reply...