B
bassman5
Hi,
I am using the Outlook Object model in c# to create and assign a task to
a user and send it (not worried about the security Message boxes) all
works OK. E.g.
Private void Do_it (string username, string subject)
{
Outlook.TaskItem objTask;
objTask =
(Outlook.TaskItem)objOL.CreateItem(Outlook.OlItemType.olTaskItem);
objTask.StartDate = DateTime.Now.AddHours (1);
objTask.DueDate = DateTime.Now.AddHours (4);
objTask.Subject = subject;
objTask.Assign();
objTask.Recipients.Add (username);
objTask.Save ();
objTask.Send ();
}
The options
'Keep an updated copy of this task on my task list' and
'Send me a status report when this task is complete'
Both are enabled by default, but I want to turn off 'Send me a status
report when this task is complete' before
I send the task, just like Outlook does from the default new task form.
Would be very nice to remove an unnecessary email message.
There does not appear to be a specific option for this, from the help it
looks like it is calculated from the BCC list but I checked there are no
BCC recipients before I send it.
Any ideas?
Thanks
I am using the Outlook Object model in c# to create and assign a task to
a user and send it (not worried about the security Message boxes) all
works OK. E.g.
Private void Do_it (string username, string subject)
{
Outlook.TaskItem objTask;
objTask =
(Outlook.TaskItem)objOL.CreateItem(Outlook.OlItemType.olTaskItem);
objTask.StartDate = DateTime.Now.AddHours (1);
objTask.DueDate = DateTime.Now.AddHours (4);
objTask.Subject = subject;
objTask.Assign();
objTask.Recipients.Add (username);
objTask.Save ();
objTask.Send ();
}
The options
'Keep an updated copy of this task on my task list' and
'Send me a status report when this task is complete'
Both are enabled by default, but I want to turn off 'Send me a status
report when this task is complete' before
I send the task, just like Outlook does from the default new task form.
Would be very nice to remove an unnecessary email message.
There does not appear to be a specific option for this, from the help it
looks like it is calculated from the BCC list but I checked there are no
BCC recipients before I send it.
Any ideas?
Thanks