Exchange ActiveSync does not sync MessageFlags.Draft

Copper Contributor

Hello

We are facing the following issue:

We create an email at server side using a C# application. The application sets the draft flag using the code 'MessageFlags.Draft'. Then the email is synced by Exchange ActivSync (EAS). At client side we are missing the flag set, in specific we are missing the send button along with the email. It is our understanding that this flag enables the send button in the email.
Can somebody help?

Thank you
Andreas

11 Replies
Hello,
why don't you send an email immediately after creation? Why do you need EAS at al?

@Victor Ivanidze

Hello

Because the email must be reviewed and potentially changed by a responsible person before sending. 

Understood. Now please explain what happens if you look at the Drafts folder using OWA.
Do you see a draft messages created by your app there? Can you modify them and send them?
Yes, I see the draft message created by our app.
In OWA everything works as expected: the message shows and the send button is visible right away.
But we face the issue when using the outlook app: the send button is not visible. User has no possibility to send the message (except forwarding the message). It looks like the draft flag got lost during EAS.
Our application creates a dedicated folder for such emails, because we found out that the standard draft folder does not replicate using EAS.
Wait a minute. If you create manually a draft email in OWA, do you see it in Outlook as a normal draft email?
No, when creating the email using OWA, in client side Outlook we can see the email but without send button.
So the issue is independent of our application / code.
In our opinion the root cause is EAS not sync'ing the draft flag.
Why do you use EAS? What is your email server?
Our customer uses EAS, we cannot change this.
The issue happens with outlook.office365.com and EAS.

The only possible solution I see is to stop using EAS.

@Victor Ivanidze : unfortunately this is not an option.

Is it your question: https://stackoverflow.com/questions/77536006/create-email-in-c-sharp-using-mailkit-and-send-later-in... ?
If so, can you follow Dmitry's suggestion and use Outlook object model instead of Mailkit ?