简体   繁体   English

使用 C# 从 Office 365 邮箱读取电子邮件

[英]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.

相关问题 使用 Microsoft Graph 从 Office 365 邮箱中提取退回的电子邮件 - Fetch Bounced emails from Office 365 mailbox using Microsoft Graph 使用SMTP通过C#从Office 365邮箱发送电子邮件 - Sending email from office 365 mailbox through C# using SMTP 使用 .Net C# IMAP 客户端从 Exchange Server 读取 Office365 电子邮件 - Read Office365 emails from Exchange Server using .Net C# IMAP client 使用刷新令牌通过c#从Office 365读取电子邮件 - Read Emails from Office 365 via c# using refresh token 无法使用来自 GoDaddy 配置的 Office 365 帐户的 C# 代码发送电子邮件 - Unable to send emails using C# code from GoDaddy configured Office 365 account 如何使用 VB.NET 或 C# 代码从启用了多因素身份验证的 Office 365 帐户发送电子邮件? - How to send emails by using VB.NET or C# code from an office 365 account that multi factor authentication enabled on it? 无法使用 c# SmtpClient 从 Office 365 发送电子邮件 - Unable to send email from Office 365 using c# SmtpClient 如何使用兑换连接到Office 365邮箱 - How to connect to Office 365 mailbox using redemption 连接到 Office 365 邮箱 - Connecting to office 365 mailbox 创建属性get-mailbox cmdlet时使用Office365 a / c连接到联机交换时出错 - Error connect to exchange online using of Office365 a/c whencreated property get-mailbox cmdlet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM