Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

December 22, 2003 12:00 AM

Outlook: Making a Send To Message Look like a Typical Outlook Message

Windows IT Pro
InstantDoc ID #41018
Rating: (4)
Downloads
41018.zip

When I use Microsoft Word's File, Send To, Mail Recipient (as Attachment) command to send a Word document or when I right-click a file in Windows Explorer and choose Send To, Mail Recipient, the resulting email message is in plain text format and doesn't include my Outlook stationery. How can I send a typical Outlook message, with the file attached, from these applications?

The Send To feature uses a mechanism called Simple Messaging API (MAPI) to create a new message. As the name implies, Simple MAPI is a basic mail technique that creates a new message regardless of which program is set as the default mail program. (You can change the default in Microsoft Internet Explorer--IE--under Tools, Internet Options, Programs.) The side effect of this simplicity is that if Outlook is the default mail program, the resulting message is in plain text format and doesn't display any default stationery, signature, or custom form that you might have set up.

However, a couple of workarounds let you create a typical Outlook message when you send an attachment from Windows Explorer or Word. To send files from Windows Explorer, you can create a new shortcut to launch an Outlook message with your file attached. In the \documents and settings\%userprofile%\sendto folder, create a new shortcut that points to the copy of Outlook installed on your system and add the /a %1 command-line switch, which tells Outlook to create a new message and attach the file you choose. On my Microsoft Office 2003 system, the shortcut target looks like this:

"c:\program files
  \microsoft office\office11
  \outlook.exe" /a %1

You would, of course, need to use the file path on your system. You can name the shortcut Outlook. To use the shortcut, right-click a file in Windows Explorer, then choose Send To, Outlook (or whatever you named the shortcut). A new Outlook email message that has your default stationery and signature and the file as an attachment should appear.

The solution for Word is a short Visual Basic for Applications (VBA) macro. In Word, with a blank document open, press Alt+F11 to enter the VBA environment, and add the code that Web Listing 1 (http://www.winnetmag.com/microsoftexchangeoutlook, InstantDoc ID 41018) shows to the normal.dot template, either in the ThisDocument module or in a new module that you add. Use Tools, References in VBA to add a reference to the Microsoft Outlook library. After you add the code, you can customize one of the Word toolbars or the File, Send To menu by adding the macro to it.

Related Content:

ARTICLE TOOLS

Comments
  • Ron
    4 years ago
    May 12, 2008

    I had the "argument invalid" error too. You can change the argument for the shortcut from "/a %1" to just "/a" or "/c ipm.note /a". Not sure what the difference is, both seem to work. The original argument seems to have broken after SP3 was applied.

  • Peter
    4 years ago
    Apr 09, 2008

    This command has worked well for me, but at one point it it started to display, " This command argument is invalid"

  • Peter
    4 years ago
    Apr 09, 2008

    This command has worked well for me, but at one point it it started to display, " This command argument is invalid"

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.