| Author |  | 
      
        | Zagavarr Newbie
 
  
  
 Joined: 02 November 2015
 Location: Germany
 Online Status: Offline
 Posts: 1
 | 
          Hello, I'm using .net SMTP component. When I use method ImportRelatedFiles of Mime.MailMessage object, images in html string are ignored and recipient doesn't see them.
           | Posted: 02 November 2015 at 6:55am | IP Logged |   |  
           | 
 |  All local images in html have absolute paths like this:
 <img src="file://localhost/C:/Users/Administrator/Local/Temp/MyPic.png">
 Could you give an example of how should I properly reference local paths in html string?
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          The path doesn't look correct to us. Prior to attempting to import HTML content with MailBee, make sure it's properly displayed if you open that HTML file with web browser.
           | Posted: 02 November 2015 at 7:19am | IP Logged |   |  
           | 
 |  
 And with regard to example of correct file paths, these would work:
 
 
 
| Code: 
 
    
    | 
      
       | <img src="C:\Users\Administrator\Local\Temp\MyPic.png"> <img src="C:/Users/Administrator/Local/Temp/MyPic.png">
 <img src="file:///C:/Users/Administrator/Local/Temp/MyPic.png">
 |  |  |  
 Note that the last one is technically URI, not filesystem path. For those to be processed, you need to use ImportRelatedFiles method with ImportRelatedFilesOptions.ImportFromUris parameter.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |