Click here to Skip to main content
15,569,858 members
Articles / Programming Languages / Javascript
Posted 1 Feb 2007


23 bookmarked

MySendToMail: A Replacement for Windows SendTo/Email

Rate me:
Please Sign up or sign in to vote.
3.50/5 (2 votes)
1 Feb 2007CPOL2 min read
This article presents a tool to send embedded/attached images via email by simple right-click => Send To

Click to enlarge


MySendToMail is a Windows shell enhancement that automates the sending of embedded images (photos) by email.

MySendToMail is intended to replace the "SendTo / Email Recipient" shortcut available in Windows Explorer. It automatically generates an email with images embedded in the body (in an HTML table) as well as attached in a zip file.

I wrote this program because... I like to send pictures - but it's not always easy to make sure people will get them right - there are too many different email clients, too many gateways that change/corrupt the original email message, or reject them because they are too big. So I tried to write a replacement for the "Send To / Mail Recipient" feature in Windows XP. Hope you'll enjoy it!


MySendToMail is implemented as a shortcut in to "SendTo" special folder ; it calls a Windows Script Host (WSH) program implemented in JavaScript that:

  • Creates an HTML body for the email message
  • Resizes all selected images
  • Embeds selected images in the email body - as small thumbnail within an HTML table
  • Attaches selected images in a zip file - but with a much higher resolution (suitable for printing)

Using this Tool

To use this tool:

  1. Start Windows Explorer / My Document / My Pictures
  2. Select one or more JPG images
  3. Use right mouse-click and select menu "Send To", and then option "My Send To Mail"

Image 2

  1. Email message composer is automatically opened with your new message
  2. Type your message text and then send your email
  3. Press enter in the "My Send To Mail" window to close the program (and clean/delete temporary files)

Features and TODO List

MySendToMail supports the following features:

  • JPG image resizing
  • Thunderbird email client

The TODO list is long - here are some very important missing features:

  • Support other image formats - GIF, PNG, etc.
  • Support other email clients - Outlook Express, Outlook, etc.
  • Support interactive resizing/embedding: request desired size, request number of columns in HTML table, etc.
  • Replace the Windows "SendTo" menu option (instead of adding a new item in the "Send To" menu


  • V1.0 - $Date: 2007-02-01 11:15:58 +0100 (jeu., 01 févr. 2007) $


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Web Developer
France France
Fell into computer software at the age of 11, founder of 3 startups, and now manager of an independent software vendor (ISV) labelled proSDK ( And still a freeware writer and technical article author!

Comments and Discussions

QuestionUninstall Pin
bbakermai2-Feb-07 14:00
bbakermai2-Feb-07 14:00 
GeneralRe: Uninstall Pin
teryakisan6-Sep-08 12:16
teryakisan6-Sep-08 12:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.