![](/img/trans.png)
[英]Sending an email, via python, from one outlook account to another
[英]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
概括:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.