Create TaskItems on exchange
From: Thorpe (anonymous_at_msnews.microsoft.com)
Date: 01/31/05
- Next message: Michael: "Re: Create TaskItems on exchange"
- Previous message: Mario Kropik: "Re: Exchange 2003 Event sink"
- Next in thread: Michael: "Re: Create TaskItems on exchange"
- Reply: Michael: "Re: Create TaskItems on exchange"
- Reply: Dan Mitchell: "Re: Create TaskItems on exchange"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 31 Jan 2005 15:55:34 -0000
I am building an ASP.NET we app and I need to be able to create a task and
add it to a users task list
(sending the task will also be ok as they could then click accept in the
email message through outlook)
I have currently use the Outlook Object model
ApplicationClass outLookApp = new ApplicationClass();
NameSpace NS = outLookApp.GetNamespace("MAPI");
NS.Logon("Username","password",false,false);
// Create a new TaskItem.
TaskItem newTask =
(TaskItem)outLookApp.CreateItem(OlItemType.olTaskItem);
// Configure the task at hand and save it.
newTask.Body = "Do some work now";
newTask.DueDate = DateTime.Now;
newTask.Importance = OlImportance.olImportanceHigh;
newTask.Subject = "This is a test task";
newTask.Assign();
newTask.Recipients.Add(someone@there.com);
newTask.Send();
NS.Logoff();
This way is no good as it means that outlook will popup some security
warnings which need user input. I need a way to create the tasks and
add/send the task automatically.
cheers
- Next message: Michael: "Re: Create TaskItems on exchange"
- Previous message: Mario Kropik: "Re: Exchange 2003 Event sink"
- Next in thread: Michael: "Re: Create TaskItems on exchange"
- Reply: Michael: "Re: Create TaskItems on exchange"
- Reply: Dan Mitchell: "Re: Create TaskItems on exchange"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|