Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

create task in delegate folder

$
0
0
hello,
I' m using the aspose.email v 2.7.0.0.
My objective is to create a task with aspose dll in the task folder of an user in a exchange server.

i have 2 account:
user1 and user2.
user1 have the right to read/write/modify  on user 2 task folder.

i' m using the following code:

 Dim task As New ExchangeTask
            task.Subject = "Task Test"
            task.StartDate = New Date(2013, 4, 5)
            task.DueDate = New Date(2013, 4, 6)
            task.Priority = Aspose.Email.Mail.MailPriority.Low
            task.Status = ExchangeTaskStatus.InProgress

Dim ExchangeConnection As ExchangeWebServiceClient = New ExchangeWebServiceClient("server", _
                                             "user1", _
                                             "password", _
                                             "domain")

Dim mailBoxInfo As Aspose.Email.Exchange.ExchangeMailboxInfo = ExchangeConnection.GetMailboxInfo("user2")

ExchangeConnection.CreateTask(mailBoxInfo.TasksUri, task)

when the execution is completed the task is created in user1 task folder and not in the folder of the user2.


Viewing all articles
Browse latest Browse all 1367

Trending Articles