Embed a Windows shared clickable path in the mail

2

I want to send a mail by embedding a clickable link to a shared windows NAS path. I checked solutions where we can use something like "<html><body><a href=

But I am not sure how to put that for a NAS shared drive. Below is my drive name:

\\Nas30u0r2b.fdc.crab.com\DPT_pp_data\logs\PP\Target.

user3901666

Posted 2019-09-20T06:57:56.063

Reputation: 123

Which email client and operating system? – harrymc – 2019-09-20T08:18:22.233

Didn't get you. I want to write a unix shell script for the same either through mailx or sendmail etc. – user3901666 – 2019-09-20T09:19:06.747

Answers

1

You may use the usual HTML syntax for hyperlinks:

<a href="file://Nas30u0r2b.fdc.crab.com/DPT_pp_data/logs/PP/Target">Target title</a>

However, whether this hyperlink will open the file manager, or whether it will not, depends entirely on the receiving email client, the antivirus and other safeguards.

If the hyperlink opens instead in the Internet browser, success will then depend on the browser and on its security settings. Some browsers will call the file manager in such a case, others will display the folder themselves, while still others will issue an error.

harrymc

Posted 2019-09-20T06:57:56.063

Reputation: 306 093

This is redirecting to a page which has link like below: http://nas30u0r2b.fdc.crab.comDPT_dq_pp_datalogspptarget/

– user3901666 – 2019-09-20T11:50:30.500

I think we need to put some escape sequence – user3901666 – 2019-09-20T11:51:06.093

It worked for me, but a more general formulation might be like this: file://Nas30u0r2b.fdc.crab.com/DPT_pp_data/logs/PP/Target, where Nas30u0r2b.fdc.crab.com is the name of the computer housing the share. For local file reference use file:///. See link.

– harrymc – 2019-09-20T12:02:45.030

Great!!. This Worked Perfect!! – user3901666 – 2019-09-20T12:06:40.183