Example Command to Send Email with Attachment
When using the command line parameter /c you can also assign a recipient address to the new e-mail form using the /m switch. If you needed to add an attachment, that can also be accomplished with a command line request. The /a switch with the file path will attach the specified file to the new e-mail form. So, as an example, to create a new e-mail form addressed to firstname.lastname@example.org with an attachment logfile.txt, you would run from the command line:
c:\>"c:\program files\microsoft office\office12\outlook.exe" /c ipm.note /m email@example.com /a "c:\logs\logfile.txt"
This is shown in the image to the left. The image on the right shows the output for this command. The path to outlook.exe is in quotes because there are spaces in the path. You can create a desktop shortcut to launch this email message as well. Right click on the desktop and select New Shortcut and enter the same path used from the command line. Now double-clicking the shortcut will create the new message. I have used this basic process for a recurring message that manually sent a text file to a recipient. The user did not have to create and address the message every time.
There are other methods of creating new emails without using the Outlook user interface. To expand on this tip, check out Microsoft KB article 287573.