powershelloutlookpowershell-2.0powershell-3.0pop3

Getting Pop3 account properties


I have been testing and trying to get the pop3 account information from outlook. I have been trying and searching on all the objects an dproperties of:

$outlookApplication = New-Object -ComObject 'Outlook.Application'

I can get much info, but i'm not able to receive the default account's email address...

Anyone?


Solution

  • Outlook Object Model exposes limited data from the accounts (Account.SmtpAddress is one of them luckily). The accounts can be accessed through the Namespace.Accounts collection.

    If you were using Extended MAPI (C++ or Delphi only), you could use the IOlkAccountManager interface (you can play with it in OutlookSpy - I am its author - click IOlkAccountManager button).

    In case of other programming languages (power shell included), you can use the RDOPOP3Account object in Redemption (I am also its author) - it exposes all POP3/SMTP account properties.