| Author |  | 
      
        | HPS Newbie
 
  
 
 Joined: 06 August 2013
 Location: Germany
 Online Status: Offline
 Posts: 8
 | 
          Hello,
           | Posted: 07 August 2013 at 12:35am | IP Logged |   |  
           | 
 |  
 we need the HTML body of a mail with embedded images (HTML image-tag) in the parsed HTML.
 
 With the GetHtmlAndSaveRelatedFiles method of the MailMessage class it is possible to get the HMTL Body with embedded images resolved to external links to the related files.
 
 Instead this, it need the images resolved to HTML-Image-Tags in the created HTML (as a string or stream which could be saved to a database). With this option the generated HTML contains the images and it could be saved in our database as a single "file". Our UI-component which displays the HTML could show it without problems and without overhead (reading HTML-Body and pictures out of the database, write them to temp-folder, read them into the ui-component...)
 
 Is this allready possible with your component?
 
 Greetings
 Hans-Peter
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          That kind of functionality is not supported. The product allows for storing embedded objects as files, and Content-IDs are replaced with URLs, that's the only option available.
           | Posted: 07 August 2013 at 1:40am | IP Logged |   |  
           | 
 |  
 However, there's a chance that different approach might suit you. Aside from standard HTML, there's also MHTML format which is designed for storing HTML with embedded objects as a single file. But in fact, MHTML and EML is the same MIME format, so you could save EML to some database and then use it to obtain either HTML with GetHtmlAndSaveRelatedFiles, or MHTML without any conversion at all.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | HPS Newbie
 
  
 
 Joined: 06 August 2013
 Location: Germany
 Online Status: Offline
 Posts: 8
 | 
          Hello Igor,
           | Posted: 07 August 2013 at 2:18am | IP Logged |   |  
           | 
 |  
 thank you for your answer. I'll try it this way.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | billseven Newbie
 
  
 
 Joined: 11 February 2014
 Location: United States
 Online Status: Offline
 Posts: 1
 | 
          Would you be able to show a small code sample of how to do this?  Thanks!
           | Posted: 11 February 2014 at 11:09am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Most probably, this documentation page should do:
           | Posted: 12 February 2014 at 3:40am | IP Logged |   |  
           | 
 |  
 Display message with embedded pictures (MailBee.NET Objects Tutorials)
 
 Various samples are available in our Developer's Guide and in Tutorials section of the product documentation.
 
 Should you require any assistance from our support team directly, please feel free to contact us via HelpDesk.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |