Is this possible? I want to have the To:, Body, and an Attachment all pre-populated so all the user has to do is click send. Thanks!
I am not able to comment, yet, so I will post this here. What action by the user or automated process causes the command line to be called that starts the Outlook app?
Do you have access to Powershell?
Open a new mail message:
outlook.exe /c ipm.note
Open a new mail message and populate sender:
outlook.exe /c ipm.note /m [email protected]
Open a new mail message with attachment:
outlook.exe /c ipm.note /a filename
Combination:
outlook.exe /c ipm.note /m [email protected]&subject=test%20subject&body=test%20body
The %20 has to be used to produce a blank space.
More details at Command Line for Creating a Pre-Addressed E-mail Message
VonC's solution works, but as stated in the comments by skbergam it doesn't allow for attachments.
If, like me, that's a biggie then the following WSH code does it.
Set olApp = CreateObject("Outlook.Application")
Set olMsg = olApp.CreateItem(0)
With olMsg
.To = "[email protected]"
'.CC = "[email protected]"
'.BCC = "[email protected]"
.Subject = "Subject"
.Body = "Body"
.Attachments.Add "C:\path\to\attachment\test.txt"
.Display
End With
I've tried it with Outlook2003
I've been wanting to do this too. Allain Lalonde's answer is brilliant!! Allows for multiple attachments too. This has saved me a LOT of work :)