Php file type question | Search |
NowSMS Support Forums ⬆ NowSMS Lite Support ⬆ Archive through September 20, 2012 ⬆ |
◄ ► |
Author | Message | ||||
Eric Simon New member Username: Eric4 Post Number: 1 Registered: 12-2009 |
When sending an MMS message of just a jpeg image through the web interface the receiving phone gets it as a picture which they can then save to their phone to use as a background image. However when sending it using php $mmsMessage = MmsAddFile ($mmsMessage, "007.jpg", "image/jpeg"); it is received as a slideshow. Is there a setting we can put in the php that would make it a picture. BTW, it was sent to the same phone. | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1602 Registered: 08-2008 |
Hi Eric, It should work the same way. When you using the PHP script and the MmsAddFile function, it builds a submission that goes through the same interface of NowSMS as the web form. I can't imagine what would be different. In both cases, NowSMS does add a slide show presentation wrapper (SMIL file) around the image. This is done because there are some phones that get confused by MMS messages that don't have a SMIL presentation layer. You can disable the addition of this SMIL layer by editing MMSC.INI and adding EMailAutoSmil=No under the [MMSC] header. (Restart the service for this setting to take effect.) SMIL is the only thing I can think of that might make a difference ... but NowSMS would be adding it in both cases, so it confuses me. If you want to enable the SMSDEBUG.LOG, and then do one submission via PHP and one via the web form, then post the SMSDEBUG.LOG ... I can look at it and tell you what fields/parameters are different between the two. -- Des NowSMS Support | ||||
Eric Simon New member Username: Eric4 Post Number: 2 Registered: 12-2009 |
Ok we duplicated the issue. First is sent using web interface -- received picture. Second using php -- received as slideshow Attached debug
| ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1605 Registered: 08-2008 |
Hi Eric, I see what the difference is. Leave out the "MMSText" parameter. The text is inserted as an additional slide. -- Des NowSMS Support | ||||
Eric Simon New member Username: Eric4 Post Number: 3 Registered: 12-2009 |
Ok. That worked great. Tested with 5 different carries. Thanks. |