Display local image in iPhone HTML mail

Posted by Sjakelien on Stack Overflow See other posts from Stack Overflow or by Sjakelien
Published on 2010-03-28T19:36:19Z Indexed on 2010/03/28 19:43 UTC
Read the original article Hit count: 168

Filed under:
|
|
|
|

Hello there, In my app, I am composing an HMTL email message with the 3.0+ MFMailComposeViewController. To do this, I created an HTML file, with some placeholders. In my code, I read the HTML file, and with replaceOccurrencesOfString, I replace the placeholders with data from the app. In that way, I compose the body of the email I want to send out. This is all working very nicely, except for the fact, that in my HTML file, I have an <img src='imageplaceholderpath' /> tag. Somehow, I cannot figure out, with what I should replace this imageplaceholderpath, in order to refer to an image that resides in my app. Is this a valid approach at all, and if so, what would be the syntax/logic behind the path I should put there? I do appreciate your insights! Regards Sjakelien

© Stack Overflow or respective owner

Related posts about iphone

Related posts about html