Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: How to reference local paths in html Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Zagavarr
Newbie
Newbie
Avatar

Joined: 02 November 2015
Location: Germany
Online Status: Offline
Posts: 1
Posted: 02 November 2015 at 6:55am | IP Logged Quote Zagavarr

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


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 02 November 2015 at 7:19am | IP Logged Quote Igor

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.

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 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