Let’s assume you’re working in the training department of a firm and need to send training materials to recruits regularly. The usual way is to right-click on the file, click Send To, and click Mail Recipient. This attaches the file to the compose window in your mail client.
How about saving bandwidth on your local network by sending the target path of documents (in a network share) instead of attaching them to mail?
Send to Mail Recipient (as Path)
For this purpose, I wrote a script that adds the Mail Recipient (as Path) option to the Send To menu, which, when clicked, opens the compose mail window and adds the target location of selected files and folders to the Body.
SendLinkToMail.vbsabove or copy the above code to Notepad and save it with a .vbs extension.
sendlinktomail.vbsto run it.
- When you see the “Configuring…” prompt, press Enter:
The Mail Recipient (as Path) is now added to the Send To menu.
Open the network location which contains files you want to email (as Path).
Select the files, right-click on the selection, click “Send to”, and select “Mail Recipient (as Path).”
This opens the new message window in your email client (e.g., Outlook) with the Subject and Body fields populated.
To change the default Subject line and
To: address, edit the script using Notepad and modify the variables in Line numbers
strRecipientEMail = "email@example.com"
strMailSubject = "Training Documents"
To remove the Mail Recipient (as Path) option from the Send To menu, re-run the script, type UNINSTALL and press ENTER. Then delete the file
This script invokes the
mailto: protocol, and it works in all versions of Windows, including Windows 10.