I Create one “MailMessage” and I send it with EWS client.
I have Exchange 2013.
After sending, I need to delete the message in sent folder of my Exchange account.
How can I get “UniqueUri” of sent message? I don’t want search in “Sent Folder” by “subject” or “sender”.
Dim myMail as new MailMessage
’ set all properties of MailMessage…
Dim credential As NetworkCredential
’ set all properties of credential …
Dim client = EWSClient.GetEWSClient(“https://owa.xxxx.com/ews/exchange.asmx”, credential)
client.Send(myMail) ’ In my opinion “Send” method should retrieve UniqueUri of message in Exchange.
’ with UniqueUri I can Delete Message