| View previous topic :: View next topic |
| Author |
Message |
helpme Guest
|
Posted: Mon Aug 23, 2004 3:46 am Post subject: how to encode text message into a mms file |
|
|
addPart("text/plain","test.txt")
no work |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Aug 23, 2004 9:22 am Post subject: |
|
|
Why doesn't it work? Where does it fail? You have to give more information. Does it fail when you encode? Does it fail when you decode or when a phone decodes it? Without any information there is nothing I can help you with. Then my guess is that it was the wrong alignment of the planets that caused the problem. The well formulated "no work" is a bit too non-descriptive I'm afraid  |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Mon Aug 23, 2004 9:23 am Post subject: |
|
|
| Yes, give some more information, please. Any error messages? |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Aug 24, 2004 8:24 am Post subject: |
|
|
$enc = new MMSEncoder();
// Add as many parts you like (phone will put size limitations on the message though)
$enc->addPart( "audio/midi","test.mid");
$enc->addPart( "image/gif","test.gif");
$enc->addPart( "text/plain","test.txt");
// Encode and write the message to a file
$mmsfilename = time().rand(1, 1000);
$enc->writeToFile("/var/work/mms/".$mmsfilename.".mms");
when phone(Nokia6600) gets this mms, it can't display text on the screen,just image and audio.
when Samsung phone gets it, it report it is not a complete mms. |
|
| Back to top |
|
 |
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Tue Aug 24, 2004 9:32 am Post subject: |
|
|
| Well, the encoding in mmslib is in very early stage so there are probably bugs. It's only been tested with a SonyEricsson T610 so it's possible that it is simply doing something wrong. |
|
| Back to top |
|
 |
|