Capture data from Outlook after ending a MAPI email
Hi folks,
I've been driving myself nuts trying to find out how to retreive the data from a user composed email created using simple MAPI and was hoping somone could give me a clue.
I basically have the code shown below and I'd like to capture RecipAddress, MsgSubject and MsgNoteText once the send button in Outlook 2000 is pressed.
MAPISession1.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.Compose
MAPIMessages1.Send True
'capture and store RecipAddress, MsgSubject and MsgNoteText
MAPISession1.SignOff
Anyone able to give me a pointer?
once the send button in Outlook 2000 is pressed
>the send button in Outlook 2000 is pressed
You have to get when the send button is pressed.
Thus you need to automate outlook (I may be wrong,
but I think you will go nowhere with mapisession and
mapicontrol) or to build a program that will try to spy the
windows that are out, or add an Add-in to outlook....