我正在尝试将具有特定名称的文件附件从共享邮箱中的文件夹传输到计算机上的目录。
我的脚本如下:
#file path
$filepath = “c:\test”
$account = "sharedMailbox@company.com"
#date string to search for in attachment name
$date = Get-Date -Format yyyyMMdd
#set outlook to open
$o = New-Object -comobject outlook.application
$n = $o.GetNamespace(
我正在开发一个C#应用程序,该应用程序将访问office 365中当前用户的邮箱,但不能通过身份验证阶段。我在用这个例子
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
service.UseDefaultCredentials = false;
//Specify login which works when connecting to Office 365 web UI
service.Credentials = new WebCredentia