MM7 with multipart/alternative | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through April 21, 2010 ⬆ |
◄ ► |
Author | Message | ||||
Latitude De New member Username: Latitudede Post Number: 1 Registered: 07-2009 |
Hi, My application is sending MMS (MM7) to the device. MMS contains the following: --_004_717128CF7057B54AB94BF01357280D7DD7A346231XXX_ Content-Type: multipart/alternative; boundary="_000_717128CF7057B54AB94BF01357280D7DD7A346231XXX_" --_000_717128CF7057B54AB94BF01357280D7DD7A346231XXX_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable ... --_000_717128CF7057B54AB94BF01357280D7DD7A346231XXX_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable ... --_000_717128CF7057B54AB94BF01357280D7DD7A346231XXX_ If sent alone, it works fine, but if sent with additional ... Content-Type: text/plain; name="real.txt" Content-Description: real.txt ... contents of previous entity gets messed up. Should I send multipart as txt? Cheers | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1003 Registered: 08-2008 |
Hi, Could I see a more complete example with all of the headers? I just want to make sure that I understand the overall structure and that there's not some error. Normally, you wouldn't use multipart/alternative in an MMS message. You'd use either multipart/related or multipart/mixed. multipart/related is used when there is a SMIL file present. multipart/mixed is used when there is no SMIL file. multipart/alternative specifies that only one part out of multiple options should be used. Normally, an e-mail client uses this when it sends both an HTML and a text version ... it is telling the receiving client to pick the version that it prefers. But the client should only pick one, not both. I'm not aware of any MMS clients supporting multipart/alternative. I also haven't seen any supporting HTML (personally I think this would make sense, but SMIL was chosen as the presentation markup for MMS and you couldn't really mix the two). So I guess it depends on what exactly you're trying to do. I'd probably need to see a more complete example with all of the header. -- Des NowSMS Support | ||||
Latitude De New member Username: Latitudede Post Number: 5 Registered: 07-2009 |
> > > > Please find attached mime message that I am sending using MM7. Also pleas= e > let me know how can I send multipart/html if multipart/alternative is not > supported. Thanks. > > > | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1008 Registered: 08-2008 |
I do not know of any MMS client that will accept HTML content as part of an MMS message. MMS messages should be either multipart/mixed (no SMIL file present), or multipart/related (SMIL file present). I am unable to view any attachment. It appears that you are replying to posts via the e-mail interface. To include an attachment, you need to upload it via the web interface of this discussion board. -- Des NowSMS Support | ||||
Latitude De New member Username: Latitudede Post Number: 7 Registered: 07-2009 |
Please find attached mime message that I am sending using MM7.
| ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1012 Registered: 08-2008 |
Ok ... you're using MM4, not MM7. MM4 is SMTP based. Actually, you're using SMTP, as there is nothing MMS specific about your message, it is an SMTP e-mail message. It's ok that you're using SMTP ... I just want to clear up confusion because this is not MM7. "multipart/alternative" is frequently used as an encoding in e-mail messages when HTML formatting is used in an e-mail message. MMS clients do not support HTML content. When NowSMS processes an e-mail message for conversion to MMS, if it sees "multipart/alternative", it will try to find the "text/plain" alternative, and will ignore the "text/html" alternative. -- Des NowSMS Support | ||||
Latitude De New member Username: Latitudede Post Number: 11 Registered: 07-2009 |
I'll attach a complete dump for better analysis. Thanks. | ||||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1017 Registered: 08-2008 |
Ok ... but guess what I'm saying is that I don't understand what the problem is. What is it that is happening that you do not think should be happening? As I've said multiple times ... MMS clients do not support HTML content. If your intent is to send an MMS message, then you should not be trying to use "multipart/alternative". -- Des NowSMS Support |