| Author |
Message |
Thorpe
Guest
|
Posted:
Mon Jan 31, 2005 8:10 am Post subject:
Create TaskItems on exchange |
|
|
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
|
|
| Back to top |
|
 |
Dan Mitchell
Guest
|
Posted:
Mon Jan 31, 2005 8:10 am Post subject:
Re: Create TaskItems on exchange |
|
|
"Thorpe" <anonymous@msnews.microsoft.com> wrote in
news:e6#GO16BFHA.3664@TK2MSFTNGP14.phx.gbl:
| Quote: | 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.
|
See http://www.outlookcode.com/d/sec.htm
-- dan |
|
| Back to top |
|
 |
Michael
Guest
|
Posted:
Mon Jan 31, 2005 8:10 am Post subject:
Re: Create TaskItems on exchange |
|
|
You can use WebDAV to create/add task from ASP .NET and this will work.
Problem is to send task (task delegation).
Michael
-------------------------------
If you need WebDAV API for Exchange server,
use our component WebDAV .NET for Exchange.
Check out http://www.independentsoft.com
"Thorpe" <anonymous@msnews.microsoft.com> wrote in message
news:e6%23GO16BFHA.3664@TK2MSFTNGP14.phx.gbl...
| Quote: | 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
|
|
|
| Back to top |
|
 |
|
|
|
|