views:

27

answers:

0

I'm using the MFMessagePickerController, and calling setMessageBody:isHTML. Setting isHTML to YES, of course. However, when the string I'm sending is something like this:

<html>look at my image! <img src="http://foo.com/img.jpg"/&gt;&lt;/html&gt;

what the recipient gets is just "look at my image!" in plain text. viewing the raw source reveals that the iPhone stripped the tags and sent the message as text/plain.

However, if I make this seemingly insignificant change:

<html><b></b>look at my image! <img src="http://foo.com/img.jpg"/&gt;&lt;/html&gt;

then the iPhone composes a proper multipart/alternative email with text/plain and text/html sections.

Is it rejecting my document as HTML in the first case because I'm not meeting some format requirement? If so, how does adding the bold tag help?