Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Get HTML body with embedded images Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
HPS
Newbie
Newbie


Joined: 06 August 2013
Location: Germany
Online Status: Offline
Posts: 8
Posted: 07 August 2013 at 12:35am | IP Logged Quote HPS

Hello,

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 View HPS's Profile Search for other posts by HPS
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 07 August 2013 at 1:40am | IP Logged Quote Igor

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.

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 View Igor's Profile Search for other posts by Igor
 
HPS
Newbie
Newbie


Joined: 06 August 2013
Location: Germany
Online Status: Offline
Posts: 8
Posted: 07 August 2013 at 2:18am | IP Logged Quote HPS

Hello Igor,

thank you for your answer. I'll try it this way.
Back to Top View HPS's Profile Search for other posts by HPS
 
billseven
Newbie
Newbie


Joined: 11 February 2014
Location: United States
Online Status: Offline
Posts: 1
Posted: 11 February 2014 at 11:09am | IP Logged Quote billseven

Would you be able to show a small code sample of how to do this? Thanks!
Back to Top View billseven's Profile Search for other posts by billseven
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 12 February 2014 at 3:40am | IP Logged Quote Igor

Most probably, this documentation page should do:

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide