Step 1: Create an ordinary message
with the recipients, subject and any cover note text. Use Tools
| Check Names to resolve the addresses. Use File
| Save to save a copy of this as a draft
somewhere in your Outlook folders, in case you want to
modify it later. You could also use File | Save As
to save it as an Outlook template .oft file. Be sure you
save it before you add the code in the next step!
Step 2: Choose Tools | Forms | Design a Form (Tools
| Design Outlook Form in Outlook 97), then Form | View Code.
Type this bit of code into the Script Editor:
This will cause this item to be sent as soon as it's
created. Choose File | Close to close the
Step 3: On the (Properties)
tab of the form, clear the box for Send form
definition with item. This is necessary to keep
the item from being sent again when the recipient opens it, if it's
an Outlook recipient.
Step 4: Choose File | Publish
Form As. Give it a name, such as Network Status
Report. This will also cause it to have a Message Class of
IPM.Note.NetworkStatusReport (or whatever you named it).
Publish it in Personal Forms.
Step 5: Create a shortcut to
Outlook.exe using the /c and /a command switches, which
are documented in the "Control what happens when you
start Outlook" help topic:
<path>\Outlook.exe /c "IPM.Note.NetworkStatusReport" /a <path>\<filename>
is the particular attachment you want to send.