Author |
|
t.kehl Newbie
Joined: 09 June 2016 Location: Switzerland
Online Status: Offline Posts: 1
|
Posted: 09 June 2016 at 12:35pm | IP Logged
|
|
|
Hi
I use the following Code to extract html (and the related pictures) from mht-files:
var msg1 = new MailBee.Mime.MailMessage();
msg1.LoadMessage("..\\..\\test2.mht");
msg1.SaveHtmlAndRelatedFiles("..\\..\\test2\\test2.html");
When I do this the result are 2 files:
test2.html
Kanopeo_1-4FooterMail-2016_jc.png
This is the content of test2.html:
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Calibri">Guten Tag Herr Schoof,</font></p>
<p><font face="Calibri">darf ich Sie eine Offerte für 100 St
verlangen Bitte?</font></p>
<p><font face="Calibri">Danke dür Ihre Antwort</font></p>
<p><font face="Calibri">Jacques Christinet</font><br>
</p>
<div class="moz-signature"><img src='\Kanopeo_1-4FooterMail-2016_jc.png' border="0"></div>
</body>
</html>
when I open the html in a browser (for example firefox or IE), the image is not shown. It will only be shown, when I change the src of the img from
src='\Kanopeo_1-4FooterMail-2016_jc.png'
to
src='Kanopeo_1-4FooterMail-2016_jc.png'
Can you help me, why this is the case? What does I have to do, that the src will be correct and the image is shown when I open the html-file?
Thank you.
Best Regards, Thomas
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 09 June 2016 at 1:59pm | IP Logged
|
|
|
Hi Thomas,
Did you try to specify a path in simpler way? "..\\..\\test2.mht" looks a bit "special". Try something simple, like "C:\\Temp\tests.mht" first.
Does it help?
Regards,
Alex
|
Back to Top |
|
|