Hi Hope this is the right forum for this question,
we have a VB assembly we have written to perform simple email functions via calls to EWS.
We use a high level user who has rights to impersonate the normal exchange users, and this usually works OK, but what we are seeing is that occasional email messages are being created in the wrong user's draft folders.
We belive this is because the impersonating account information is getting overwritten within our code when multiple users access the functions at the same time
Example call to the WS is...
Public Shared Sub InsertEmail( _
ByVal Impersonate As String, _
ByVal Subject As String, _
ByVal Body As String, _
ByVal ToAddress As String, _
ByVal CCAddress As String, _
ByVal BCCAddress As String, _
ByVal HTMLEmail As Boolean, _
<Out()> ByRef ItemID As String, _
<Out()> ByRef ChangeKey As String)
'ByVal CCAddress As String, _
'ByVal BCCAdddress As String, _
Using esb As Helper = New Helper(Impersonate)
' Create the CreateItem request.
Dim createEmailRequest As New ews.CreateItemType()
' Specifiy how the e-mail will be handled.
createEmailRequest.MessageDisposition = ews.MessageDispositionType.SaveOnly
View Complete Post