How to get email address from the emails inside an Oulook folder via PowerShell?

后端 未结 1 598
半阙折子戏
半阙折子戏 2020-12-19 19:12

I have an Outlook folder, let\'s call it LoremIpsum, where I have more than 1000+ email drafts that I want to enumarate and do some filtering via PowerShell. I

相关标签:
1条回答
  • 2020-12-19 20:00

    I think you need to use the PropertyAccessor.

    $PR_SMTP_ADDRESS = "http://schemas.microsoft.com/mapi/proptag/0x39FE001E"
    $smtpAddress = $recip.PropertyAccessor.GetProperty($PR_SMTP_ADDRESS)
    

    See here (Warning! VBA): https://msdn.microsoft.com/en-us/VBA/Outlook-VBA/articles/obtain-the-e-mail-address-of-a-recipient

    0 讨论(0)
提交回复
热议问题