Php file type question

Php file type question SearchSearch
Author Message
Eric Simon
New member
Username: Eric4

Post Number: 1
Registered: 12-2009
Posted on Tuesday, December 22, 2009 - 02:29 pm:   

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
Posted on Tuesday, December 22, 2009 - 04:37 pm:   

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
Posted on Tuesday, December 22, 2009 - 05:33 pm:   

Ok we duplicated the issue.

First is sent using web interface -- received picture.
Second using php -- received as slideshow

Attached debug
application/octet-streamsmsdebug
SMSDEBUG.LOG (8.2 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1605
Registered: 08-2008
Posted on Tuesday, December 22, 2009 - 08:30 pm:   

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
Posted on Wednesday, December 23, 2009 - 04:20 pm:   

Ok. That worked great. Tested with 5 different carries. Thanks.