Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/451.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 来自用户的答复不在邮件上_Javascript_Microsoft Graph Api - Fatal编程技术网

Javascript 来自用户的答复不在邮件上

Javascript 来自用户的答复不在邮件上,javascript,microsoft-graph-api,Javascript,Microsoft Graph Api,我正在开发一个应用程序,可以显示邮件对话并允许用户回复。在某些情况下,以前未包含在对话中的用户(userB)希望加入。我希望这个新来者能够回复或以某种方式添加到对话中(将他们作为发件人地址) 我试过这个: client.post('/users/userA@example.com/messages/<message ID>/reply', { message:{ from: { emailAddress: { address: "us

我正在开发一个应用程序,可以显示邮件对话并允许用户回复。在某些情况下,以前未包含在对话中的用户(userB)希望加入。我希望这个新来者能够回复或以某种方式添加到对话中(将他们作为
发件人
地址)

我试过这个:

client.post('/users/userA@example.com/messages/<message ID>/reply', {
  message:{
    from: {
      emailAddress: {
        address: "userB@example.com",
      }
    }
  },
  comment: `userB has something important to add.`
})
client.post('/users/userA@example.com/信息//回复'{
信息:{
发件人:{
电子邮件地址:{
地址:“userB@example.com",
}
}
},
注释:`userB有一些重要的补充`
})
但是获取
errorsendasdeigned

我怎样才能得到许可?有可能吗


我考虑过的另一种选择是将消息转发给userB,然后回复该消息。有更好的主意吗?

我看没有别的办法了。您只需首先转发消息,因为POST/users/UPN/messages/msg id/reply需要回复消息,并且发送者必须与一个邮箱关联