Question

I'm trying to include an image in an email, which is being sent using a mailto: URL in an iPhone app. The image shows up on the sender's mail app, but after being sent, the tag seems to be stripped out entirely. Here's a snippet, which has been escaped by hand:

[mailUrl appendString:@"&body=%3Cimg%20src%3D%22http%3A//stackoverflow.com/content/img/stackoverflow-logo.png%22%20/%3E"];

Short of using my own SMTP server, or sending them as attachments, is there any way to embed images in an email on the iPhone?

Was it helpful?

Solution

No there is no way to do it using the iPhone SDK up till version 2.2.1.

There is a way to do it with the 3.0 SDK but it is under NDA so I cannot discuss it here :(

OTHER TIPS

http://webbuilders.wordpress.com/2009/11/16/url-must-be-url-encoded-inside-a-nsstring-in-objective-c/

This new account won't allow me to post my answer. I include info here

Luke, probably not useful to you anymore, but in researching this topic someone mentioned that wrapping the image with <b></b> prevents the iphone mail app from stripping the img tag. I tried it and it works for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top