Powershell Outlook message sended check

94 views Asked by At

I would like to know if a message has been send by Outlook 2016 with POwershell... The solution is maybe to know if this message appears in the sended folder

I found how to connect to Outlook and to use objects but for the moment no solution in order to list files in the folder sended elements the name of this folder should be olFolderSentMail

so i was thinking to use

$olFolderInbox = 6
$ol = new-object -comobject "Outlook.Application"
$namespace = $ol.getnamespace("mapi")

$namespace.Folders(olFolderSentMail)

Could you help me

Thanks for your advices

Jean-Marc

0

There are 0 answers