How to create a pre-addressed e-mail message in Outlook 2003 (829973)
The information in this article applies to:
- Microsoft Office Outlook 2003
INTRODUCTIONThis
article describes how to use a command-line switch to create a new e-mail
message and to populate the To field automatically in
Microsoft Office Outlook 2003 by using one of the following two methods:
- Using a desktop shortcut.
- Using the shell command.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers 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 requirements. Using a desktop shortcutTo create a shortcut that automatically pre-addresses a new e-mail
message, follow these steps:
- Right-click a blank area in your Windows desktop, point to
New, and then click Shortcut.
- In the command location box, type (with the quotation
marks) "C:\Program Files\Microsoft Office\Office11\Outlook.exe" /c
ipm.note /m full e-mail name
where full e-mail name is the complete e-mail
address of the recipient.
In this example, the command-line location
would be as follows: "C:\Program Files\Microsoft Office\Office11\Outlook.exe" /c ipm.note /m JohnDoe@msn.com Note This example assumes that Outlook 2003 is installed in the
default setup location. You may have to modify the path if you did not install
Outlook 2003 in the default setup location. - Type a name for the shortcut, for example, type
Mail to John Doe.
- Click Finish.
Note If you want to use a custom form in your desktop shortcut, use
the message class of the custom form instead of using the message class of
IPM.Note. For example, if the custom form that you want to use has a display
name of "MyForm," (without quotation marks) the message class would be IPM.Note.MyForm. In this example, the command-line location would be as follows: "C:\Program Files\Microsoft Office\Office11\Outlook.exe" /c
ipm.note.myform /m JohnDoe@msn.com Using the shell commandTo automatically create a new pre-addressed
Outlook 2003 e-mail message by using the shell command, follow these steps:
- Start Microsoft Office Word 2003.
- On the Tools menu, point to
Macro, and then click Macros.
- In the Macro name box, type
SendMail, and then click
Create.
- Type the following sample code in the code editor, where
full e-mail name is the complete e-mail address of
the recipient:
Shell "C:\Program Files\Microsoft Office\Office11\Outlook.exe /c ipm.note
/m full e-mail name" In this example, type Shell "C:\Program Files\Microsoft
Office\Office11\Outlook.exe /c ipm.note /m
JohnDoe@msn.com. - On the File menu, click Close and
Return to Microsoft Word.
- On the Tools menu, point to
Macro, and then click Macros.
- Click the SendMail macro, and then click
Run. The SendMail macro creates a new e-mail message that is pre-addressed to the
recipient that you typed in step 4.
If Outlook 2003 is not running, you may experience a delay while
the Microsoft Windows Messaging System starts. Note The shell command is very restrictive. You may have more automation
features if you use Microsoft Visual Basic for Applications (VBA) or Microsoft
Visual Basic Scripting Edition (VBScript). Because of Outlook 2003
security enhancements, you cannot use a command-line to automatically populate
the subject or the body of e-mail messages.
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
823923
You
cannot use the /select switch to start Outlook 2003
Modification Type: | Major | Last Reviewed: | 7/1/2005 |
---|
Keywords: | kbProgramming KbVBA kbemail kbusage kbSecurity kbhowto kbinfo KB829973 kbAudEndUser |
---|
|