views:

38

answers:

0

I'm using the basic MFMailComposeViewController through the iPhone SDK to attach photos and send e-mails from within an app. The big problem I have is that, if I have HTML enabled (isHTML:YES), the control takes it upon itself to add reduced width and height values to the image element within the HTML that it generates. The actual image is still sent at its original resolution, but the recipient sees it in a reduced format due to the width/height attributes iPhone embeds.

For instance, below are images sent and what iPhone inserts as width and height in the HTML:

50x50   = <img src="cid:..." id="..." width="50" height="50"> (Good)
320x240 = <img src="cid:..." id="..." width="300" height="225"> (Reduced)
320x480 = <img src="cid:..." id="..." width="300" height="450"> (Reduced)
480x320 = <img src="cid:..." id="..." width="300" height="200"> (Reduced)
640x480 = <img src="cid:..." id="..." width="300" height="225"> (Reduced)

As you can see, any image wider than 300px is scaled down, but it is only scaled down via the HTML and is still sent in its original form. If there is a way for me to disable this "feature" or manually specify the width and height attributes I would extremely appreciate it. The other option is to send as plain text but doing so results in many individual attachments both for the image and the signature each time, and does not look good at all. Thanks for any help!