December 18, 2009
Launch Outlook Email
Email sign up
Works with Surround SCM 2010 and later
Will not work with Surround SCM 2009 and earlier
Some time ago, I posted an example on how to use Surround SCM triggers in conjunction with the workflow to email a file in your local working directory. While the solution was nice in that it involved the workflow, it was very cumbersome to set up and configure. This plug in sample simplifies the process and uses the Outlook Interop interface to launch an Outlook message with the local file attached.
Use CaseYour process dictates that before you check in a file (or files), you must have someone else review it before you can check it in. The file is in your working directory, so how do you get this individual to review your file? For some of you, email is the answer. You open your mail client, and attach the files from your working directory. While the "Open Containing Folder" feature in the Surround SCM client makes this easier, it still involves several steps. This tool aims to simplify this process even further. When you right click on a file (or files), the tool will call Outlook and create a new mail item and automatically attach the local copy of the file.
Access from Surround SCM clientPlease refer to the Surround SCM Custom Client Menus article for help on creating a custom menu option to access the tool. It is meant to be used as a plugin and will not work otherwise. While the tool maybe accessed from anywhere, remember that it requires at least one file to be selected, so it makes sense that it should be accessed from the file context menu.
- The tool depends on at least one file being selected in the Surround SCM client.
- The tool requires that you have a working directory set and it contains a copy of the selected file.
- This was created and tested against Outlook 2007.
- The tool was written using Visual Studio 2008, so the .NET framework version 3.5 must be present.
- You must have Outlook open to run this. I'm sure code could be added to open Outlook if not open, but this is just a sample. Feel free to add code as needed.
- The tool supports working directories that start with double back slashes (\sharefoldername) and with a mapped letter drive (c:localfolder).