What could be easier than starting a new messages in Windows Live Mail. All it takes is a click on the Create Mail button.
But what if you fancy starting a new message from a command prompt, possibly without the main window of Windows Live Mail showing, or if you want to create messages programmatically from other applications? In this article we are going to learn how to create new mail thru command line for Windows live mail.
Both can be accomplished with command line arguments. You can create a simple message, but you can also specify default recipients as well as a default subject and message text.Create a Message in Windows Live Mail from the Command Line.
But what if you fancy starting a new message from a command prompt, possibly without the main window of Windows Live Mail showing, or if you want to create messages programmatically from other applications? In this article we are going to learn how to create new mail thru command line for Windows live mail.
Both can be accomplished with command line arguments. You can create a simple message, but you can also specify default recipients as well as a default subject and message text.Create a Message in Windows Live Mail from the Command Line.
Steps to create a new email message in Windows Live Mail from the Windows command line:
* For Windows Live Mail:
o Type '"C:\Program Files\Windows Live\Mail\wlmail" /mailurl:%'.
* Hit Enter.
* For Windows Live Mail:
o Type '"C:\Program Files\Windows Live\Mail\wlmail" /mailurl:%'.
* Hit Enter.
Steps to create a message with default To:, Cc:, Bcc:, Subject and message body fields:
* Type '"C:\Program Files\Windows Live\Mail\wlmail" /mailurl:%' .
* Use the mailto URL encoder to construct a mailto: URL containing the desired default values.
o For a message sent To: "recipient@example.com" by default with a Subject: of "Hello" and a body of "Hi there", the URL would be "mailto:recipient@example.com?subject=Hello&body=Hi%20there", for example.
* Copy and paste the URL to the command line, appending it immediately after "mailurl:".
* Enter a quotation mark '"' between "mailto:" and the email address of the default recipient.
o The full command line using the above example is, using Windows Live Mail, '"C:\Program Files\Windows Live\Mail\wlmail" /mailurl:mailto:"recipient@example.com?subject=Hello&body=Hi%20there' (again including the inner but not including the outermost quotation marks).
These steps can be followed in Windows Live mail installed in Windows XP and Windows 7.
0 comments:
Post a Comment