Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Embedded images with relative path Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jensburkhardt
Newbie
Newbie


Joined: 07 December 2011
Location: Germany
Online Status: Offline
Posts: 3
Posted: 08 December 2011 at 7:48am | IP Logged Quote jensburkhardt

Dear all,

is it possible to reference embedded images in a html file by a relative path? For example i want to store an email with all the inline attachment somewhere on the disk. So if i use SaveHtmlAndRelatedFiles I have the html and the inline attachments somewhere in a temporary folder.
If i copy everything to a different folder it´s not working anymore.

I just want to tell the html file that every inline attachment is in some sub-directory in the same folder as the html file "\Sub_Directory\image1.jpg" and not "C:\User\temp\tempfolder\Sub_Directory\image1.jpg".

Thanks in advance,

Jens
Back to Top View jensburkhardt's Profile Search for other posts by jensburkhardt
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 08 December 2011 at 9:28am | IP Logged Quote Alex

Got it, thanks! Will forward to the developers and let you know when anything comes out.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 12 December 2011 at 9:10am | IP Logged Quote Alex

Please try http://www.afterlogic.com/updates/mailbee_net_2.zip and let us know if it works as expected. Thanks!

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
jensburkhardt
Newbie
Newbie


Joined: 07 December 2011
Location: Germany
Online Status: Offline
Posts: 3
Posted: 13 December 2011 at 6:34am | IP Logged Quote jensburkhardt

Can you give me an example on how i should call SaveHtmlAndRelatedFiles? I still see the absolute path in the html file but maybe my call is wrong.

Thanks in advance!

Best,
Jens
Back to Top View jensburkhardt's Profile Search for other posts by jensburkhardt
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 13 December 2011 at 7:21am | IP Logged Quote Alex

here is the code:

Code:

Console.WriteLine(Global.Version); // must display 7.0.2.337
msg = new MailMessage();
msg.LoadMessage("C:\\1.eml");
msg.SaveHtmlAndRelatedFiles(@"C:\temp\index.html");


Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
jensburkhardt
Newbie
Newbie


Joined: 07 December 2011
Location: Germany
Online Status: Offline
Posts: 3
Posted: 14 December 2011 at 5:54am | IP Logged Quote jensburkhardt

Thank you Alex! I tried it and it stores the inline attachment in the same folder as the html file.

What I wanted is that I can tell mailbee that I want the inline attachment stored in a folder next to the html file e.g. the html file is stored in c:\test.html and the inline attachment is stored in c:\inlineattachment\attachment.jpg (i choose "inlineattachment" as the sub folder).

Anyway, I parse the html and change the reference to the inline attachment by myself so this is fine for me :).

Thanks again.

Best,
Jens
Back to Top View jensburkhardt's Profile Search for other posts by jensburkhardt
 

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