Outlook98 command line features
What command line features can you use to generate and send email using outlook98.
I want to integrate this in a batch file to notify me of its success.
Windows Forum
What command line features can you use to generate and send email using outlook98.
I want to integrate this in a batch file to notify me of its success.
by tmcdonald
Hey Chris,
The following is taken from TechNet Q181991. Hope this helps.
Single Command Line String for a Message with Subject and Body
NOTE: 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:
mailto:?cc=&bcc=&subject=&body=
Where the following variable definitions apply:
Variable Field Entry
--------------------------------------------------------------
e-mail address to appearin the To field
e-mail address to appear in the CC field
e-mail address to appear in the BCC field
text to appear in the Subject field
text to appearin the Body of the message
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:
Space ( ) %20
Comma (,) %2C
Question Mark (?) %3F
Period (.) %2E
Exclamation Point (!) %21 Colon (:) %3A
Semicolon (;) %3B
An example of a command line for the Subject and Body text using these variables would be:
&subject=Hello%20World%21&body=How%20are%20you%2C%20John%3F
This command line would yield:
Subject: Hello World!
Body : How are you, John?
This discussion is closed to new replies.
Sort by Trending