Create TaskItems on exchange

Create TaskItems on exchange

Post by Thorp » Wed, 02 Feb 2005 00:55:34


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( XXXX@XXXXX.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
 
 
 

Create TaskItems on exchange

Post by Michae » Wed, 02 Feb 2005 02:13:44

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.yqcomputer.com/

 
 
 

Create TaskItems on exchange

Post by Dan Mitche » Wed, 02 Feb 2005 02:29:29

"Thorpe" < XXXX@XXXXX.COM > wrote in


See http://www.yqcomputer.com/

-- dan