azure - Microsoft Graph - 发送邮件
问题描述
我正在尝试使用 Microsoft Graph Send Mail 发送电子邮件,但我不断收到以下错误
{
"error": {
"code": "Request_BadRequest",
"message": "Specified HTTP method is not allowed for the request target.",
"innerError": {
"date": "2020-06-19T07:06:42",
"request-id": "xxx-xxxx-xxxx-xxxx-xxxx"
}
}
}
我已经关注了微软的这篇文章https://docs.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http
有谁知道我是否需要配置其他设置以允许发布功能?
以下是我的邮递员要求
解决方案
网址不正确。它应该是https://graph.microsoft.com/v1.0/me/sendmail。你放了sendEmail
,这是导致问题的原因。
推荐阅读
- java - 我怎样才能从父类到达子类?(在Java中)
- git - 如何使用 Git LFS 跟踪存储库的任何子目录中的任何(任意)文件 - 但不跟踪其根目录中的任何文件?
- python - tkinter 在 Windows 10 上的 CMD 中运行
- c++ - C ++如何正确将此代码实现到堆中
- selenium - Jenkins:ChromeDriver 从 shell 脚本更新 PATH 并使用新版本
- swift - Swift/FireStore - 在固定路径添加和更新子集合
- r - 如何计算 tibble 或数据框中的值以生成新的输出表?
- r - R:删除“。” 和数据框中年份列中的 0
- python - 一个类的每个python对象在创建后都具有相同的属性值
- python - 有没有更简单的方法来解决这个问题?