質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top