[英]Reading Emails from Office 365 mailbox using C#
It seems that Office 365 emails are no longer to be possible to be read using normal SMTP.似乎 Office 365 电子邮件无法再使用正常的 SMTP 阅读。
There seems to be a new procedure which also requires using Azure.似乎有一个新程序也需要使用 Azure。
I need to be able to read and also delete old emails from a mailbox.我需要能够阅读和删除邮箱中的旧电子邮件。 Anyone knows of a blog somewhere which explains this clearly, as some blogs I saw were a bit vague?
任何人都知道某个地方的博客清楚地解释了这一点,因为我看到的一些博客有点含糊?
You can use Microsoft Graph which lets your app get authorized access to a user's Outlook mail data in a personal or organization account.您可以使用 Microsoft Graph,它让您的应用获得对个人或组织帐户中用户的 Outlook 邮件数据的授权访问权限。 With the appropriate delegated or application mail permissions, your app can access the mail data of the signed-in user or any user in a tenant.
通过适当的委托或应用程序邮件权限,您的应用程序可以访问登录用户或租户中任何用户的邮件数据。
The Microsoft Graph API supports accessing data in users' primary mailboxes and in shared mailboxes. Microsoft Graph API 支持访问用户主邮箱和共享邮箱中的数据。 The data can be calendar, mail, or personal contacts stored in a mailbox in the cloud on Exchange Online as part of Microsoft 365, or on Exchange on-premises in a hybrid deployment.
数据可以是日历、邮件或个人联系人,存储在作为 Microsoft 365 的一部分的 Exchange Online 云邮箱中,或混合部署中的 Exchange 内部部署。 Read more about that in the Use the Outlook mail REST API article.
在使用 Outlook 邮件 REST API 一文中阅读更多相关信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.