Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / Javascript

MySendToMail: A Replacement for Windows SendTo/Email

3.50/5 (2 votes)
1 Feb 2007CPOL2 min read 1   1.6K  
This article presents a tool to send embedded/attached images via email by simple right-click => Send To

Click to enlarge

Introduction

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!

Background

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

History

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

License

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