Let’s assume you’re working in the training department of a firm, and need to send training materials to new recruits on a regular basis. The usual way is to right-click on the file, choose Send To, and click Mail Recipient. This attaches the file to the compose window in your mail client.

How about saving bandwidth in your local network by sending the target path of documents (residing in a network share), instead of attaching them to mail?

For this purpose, I wrote a script which 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.

1. Download SendLinkToMail.zip

2. Unzip the archive and extract the file sendlinktomail.vbs to a permanent location.

3. Double-click sendlinktomail.vbs to run it.

4. When you see the following prompt, simply press ENTER:

The Mail Recipient (as Path) is now added to the Send To menu.

5. Open the location which contains documents that you want to email (as Path)

6. Select the files.

7. From the File menu, choose Send To and click Mail Recipient (as Path)

This opens your mail client, with the Subject and Body fields populated.


Note: Hyperlink is formed correctly as long as the path does not contain spaces.

Add a salutation, type your message, mention the To: address and send it.

Customization

To change the default Subject line and To: address, edit the script using Notepad and modify the variables in Line #28 and 29. For example:

strRecipientEMail = "somename@mydomain.com"
strMailSubject = "Training Documents"

Undo Information

To remove Mail Recipient (as Path) option from the Send To menu, re-run the script, type UNINSTALL and press ENTER. Then delete the file sendlinktomail.vbs manually.

Related Posts


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

16 Comments

  1. QnC
    said this on Tuesday, June 1st 2010 7:26 pm

    Hi!

    Nice code! Helped me a LOT!
    But i need a nother code too. I have tried change yours but im not expert.
    What i need in send to menu is “Mail Recipient (to somebody) with filled email address, filled subject and body and with attached file and not with the link.
    Im not administrator on my company computer, but i can install vb codes.
    Can you help me?

  2. phillip
    said this on Tuesday, April 6th 2010 7:02 pm

    when i right click on a photo using windows 7, nothing happens when i choose send to mail recipient.

  3. Joseph
    said this on Tuesday, February 23rd 2010 12:48 pm

    THANK YOU SO MUCH, I LOOKED EVERYWHERE FOR THIS

    YOU ARE DA – BOMB

  4. Greg
    said this on Monday, February 8th 2010 2:53 am

    @Ramesh Srinivasan:
    10X!
    this really helped, i hope others will find it useful as much as i did.
    one note though, there seems to be a %3C %3E 1 too many, i’ll try to figure out why the iteration is returning that.

    thanx again!

  5. said this on Sunday, February 7th 2010 9:43 am

    @Greg: I’ve modified the code little bit. Pls download/run the updated one, choose “Install” and try again.

  6. Greg
    said this on Thursday, February 4th 2010 3:37 am

    @Mike_G:
    do you mean like this:
    strLinks = strLinks & Replace(,” “, “%20″) & “%0A”
    because this isn’t working….
    could you post the line from the code?
    thx!

Leave a Reply