html - monotouch: Image not displaying in email -


i have html has image in table. table displays fine in uiwebview. take same html , send in email (using mfmailcomposeviewcontroller). code snippet build html is:

html += "<tr><td><img src=\"reading.png\" align=left></td><td>"

the table created properly, image has question mark in blue box. (obviously, can't find image, why?)

how fix this?

the path "reading.png" not found, reason why not see image.

there in fact several potential solutions.

1) put image web url http://yourweb address.com/reading.png, works , show, clients supports , user need click "show images" if he/she has disabled default in email client.

2) second solution put specific image representation img tag, can opening file, reading content , adding base64 data src of img, there plenty of samples this.

3) third add attachment email. again plenty of samples here , on web how that.

conversion of sample code objectivec simple monotouch.

hope helps.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -