繁体   English   中英

通过 Web Outlook 发送 email 与 ZA7F5F35426B9274188FC9231B5363

[英]Sending email via Web Outlook with Python

每个人!

I've found plenty of ways to send email via Outlook Desktop using python, if there are any solutions for sending email using web version of outlook and python?

我推荐使用 Microsoft Graph API。 您需要使用 Auth0 登录用户。

这是一个教程: https://docs.microsoft.com/en-us/graph/auth
确保请求代表用户发送电子邮件的正确范围。

您还需要考虑要使用的身份验证流程。 Web 应用程序、单页应用程序和本机应用程序有不同的登录过程。

登录后可以调用如下API: https://docs.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http

在执行这些步骤之前,您需要在 azure 上注册一个应用程序: https://portal.azure.com//#viewsListedApplades

概括:

  1. 在 Azure 中注册申请
  2. 使用适当权限(auth0 范围)在 Microsoft Graph 上登录用户
  3. 致电发送电子邮件 Microsoft Graph API

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM