The information in this article applies to:
SUMMARY
This article describes how to use command line switches to create a new
e-mail message that is pre-addressed (with the To field filled in
automatically). You can do this in the following ways:
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/refguide/ Using a Desktop ShortcutTo create a shortcut on the Windows desktop that automatically creates a new pre-addressed e-mail message, follow these steps:
Using the Microsoft Office Shortcut BarTo add a button to the Office Shortcut Bar to automatically create a new pre-addressed e-mail message, follow these steps:
Using the Shell CommandTo automatically create a new pre-addressed Outlook e-mail message using the Shell command, follow these steps:
NOTE: Using the Shell command is very restrictive. You can better automate the contents of a new e-mail message with Visual Basic for Applications or VBScript. Single Command Line String for a Message with Subject and BodyNOTE: The procedures outlined in this section assume that the user is familiar with creating the type of objects listed in the implementation list.In order to create a preformatted and preaddressed email message it is necessary to build a command line string with the following parameters:
Where the following variable definitions apply:
Note the position of the question mark and ampersand characters in the
command line syntax.
In addition to the field designations, you must use ASCII hexadecimal equivalents as variables for punctuation characters. The following variables are used to represent commonly used characters:
An example of a command line for the Subject and Body text using these
variables would be:
This command line would yield:
Subject: Hello World! Uses of the Command line StringThis command line string may be used in the following implementations:
REFERENCESFor more information about automating Outlook, please see the following articles in the Microsoft Knowledge Base: Q181202 OL98: How to Automate Outlook from Another ProgramFor more information about Outlook command line switches, please see the following article in the Microsoft Knowledge Base: Q182112 OL98: Additional Command-Line SwitchesOr, click the Office Assistant, type "control starting Outlook," click Search, and then click to view "Control what happens when you start Outlook." NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Outlook Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base: Q120802 Office: How to Add/Remove a Single Office Program or Component Additional query words: parameter parameters argument arguments
Keywords : kbcode kbdta |
Last Reviewed: July 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |