Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

How to send inline images in body of an email

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need help on following thing :

1)I have an email client page similar to yahoo.
Show: To, Subject, Message Body & attachment fields.

2) When submit is clicked the email needs to be send to the recipient with the attachment in the email. The user should see that attachment as inline text. I mean similar to what you see when you get the email from which may have your invoice details plus some images inside the same page.

Now the trick is user will create this page in word document. It may contain newsletter, header, footer, images the way he wanna show it. He then saves that page he developed on his machine as web page from word document using save-as-web-page mode. & then he attaches that web page in that email client with browse button. The problem here what I see is the images will not get saved in that html document.

If I have somehow images & text in one document, I can do multipart form data (like in upload utility) & then either

1) Attach that page as an attachment mode & send that email. But user should see inline images.


2) Write in the message body the entire data & send as an email. This will make user see inline images.

I know one way is to store images on server & have relative path but can we do something different & sophisticated?
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic