Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Read Currently Open Active Outlook Message Email Inspector ActiveInspector
For Example:
objApp = ObjectCreate("Outlook.Application") objInspector = objApp.ActiveInspector olMail = 43 ;Check for active inspector If objInspector!=0 objCurrItem = objInspector.CurrentItem class = objCurrItem.Class ;Check if message item If objCurrItem.Class == olMail Sender = objCurrItem.SenderName Body = objCurrItem.Body objAttachments = objCurrItem.Attachments count = objAttachments.Count For i = 1 To count objAttach = objAttachments.Item(i) filename = objAttach.FileName Pause('Attachment ': i, filename) Next Message(Sender,Body) Else Message("Error","Not a Mail Item") EndIf Else Message("Error","No Active Inspector") EndIf objInspector = 0 objApp = 0 Exit
Article ID: W18094
Filename: Read Open Active Outlook Message.txt
File Created: 2010:06:21:10:26:58
Last Updated: 2010:06:21:10:26:58