• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to send inline images in body of an email

 
Greenhorn
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 expedia.com 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.

or

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?
reply
    Bookmark Topic Watch Topic
  • New Topic