| Author |  | 
      
        | jensburkhardt Newbie
 
  
 
 Joined: 07 December 2011
 Location: Germany
 Online Status: Offline
 Posts: 3
 | 
          Dear all,
           | Posted: 08 December 2011 at 7:48am | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Got it, thanks! Will forward to the developers and let you know when anything comes out.
           | Posted: 08 December 2011 at 9:28am | IP Logged |   |  
           | 
 |  
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Please try http://www.afterlogic.com/updates/mailbee_net_2.zip and let us know if it works as expected. Thanks!
           | Posted: 12 December 2011 at 9:10am | IP Logged |   |  
           | 
 |  
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | jensburkhardt Newbie
 
  
 
 Joined: 07 December 2011
 Location: Germany
 Online Status: Offline
 Posts: 3
 | 
          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.
           | Posted: 13 December 2011 at 6:34am | IP Logged |   |  
           | 
 |  
 Thanks in advance!
 
 Best,
 Jens
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          here is the code:
           | Posted: 13 December 2011 at 7:21am | IP Logged |   |  
           | 
 |  
 
 
| 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 |     | 
       
       
        |  | 
        | jensburkhardt Newbie
 
  
 
 Joined: 07 December 2011
 Location: Germany
 Online Status: Offline
 Posts: 3
 | 
          Thank you Alex! I tried it and it stores the inline attachment in the same folder as the html file.
           | Posted: 14 December 2011 at 5:54am | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  |