Microsoft Graph API mail office 365: Is any option create inbox message NOT as Draft?

半世苍凉 提交于 2019-12-04 19:47:01

Yes. You have to set the message flags at creation time via property tag 0x0E07 (integer). From the EWS book with some mods - "According to MSDN, the MSGFLAG_UNSENT message flag is read-write ONLY before the message is first saved (http://msdn2.microsoft.com/en-us/library/ms527629.aspx). After that, the flag is read only. What this means is that if you are going to modify the message flags for a message, you must do it when you first call CreateItem (or the REST equivalent). You cannot clear this flag on an existing message."

You can also look at the send a message on the fly option, which obviates the need to create a message somewhere then send it. We do this and don't end up with any drafts hanging around afterwards. See this for more details: https://msdn.microsoft.com/en-us/office/office365/api/mail-rest-operations?f=255&MSPPError=-2147217396#SendMessageOnTheFly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!