-
I'm trying to reply to a message (code below), but it is always being sent as a draft. The message does get sent, but it shows up in the sent messages folder tagged as a draft, which I want to avoid. The message I'm replying to is not a draft (is_draft = False). However, from looking at the sources, messages always default to drafts and I can't figure out how to make them regular messages since there doesn't seem to be a way to set that property. In the graph api, the sendmail endpoint is the mechanism to not send as a draft, but in the o365 sources, message only uses that endpoint if __isdraft is False, which seems a bit circular. What am I missing to get my message tagged as not a draft? Thanks for any help.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I don't see them as drafts once they are send. Check Ms graph docs to see alternatives to reply messages although I don't think there's any. |
Beta Was this translation helpful? Give feedback.
Ok, figured out my problem. I was making changes to the message (which I now was a draft) without saving it. Apparently, this is what was causing the sent item to show up as a draft along with a few other weird behavioral things. Anyway, calling message.save_draft() prior to calling message.send() made everything behave as I was expecting.