Last post Jul 16, 2010 05:38 AM by avinash1245
Jul 15, 2010 08:26 AM|avinash1245|LINK
I am creating an outlook task. i am able to send it without any errors. But the recipient is not able to accept/decline/open the task. please find my code below. (VS 2005)
Microsoft.Office.Interop.Outlook.Application outlookApp = new Application();
Microsoft.Office.Interop.Outlook.TaskItem oTask = (Microsoft.Office.Interop.Outlook.TaskItem)outlookApp.CreateItem(OlItemType.olTaskItem);
oTask.Subject = "This is my task subject";
oTask.DueDate = Convert.ToDateTime("07/16/2010");
oTask.StartDate = Convert.ToDateTime("07/16/2010");
oTask.ReminderSet = true;
oTask.ReminderTime = Convert.ToDateTime("07/16/2006 02:40:00 PM");
oTask.Body = "This is the task body";
oTask.SchedulePlusPriority = "High";
oTask.Status = OlTaskStatus.olTaskInProgress;
//Send task via email
Microsoft.Office.Interop.Outlook.Recipients oRecipients = oTask.Recipients;
oReceipient = oRecipients.Add("firstname.lastname@example.org");
oReceipient.Type = 1;
recipient "email@example.com" is getting following error when he tries to accept/decline/open the task
"cannot open this item. Outlook cannot do this type of action on this type of attachment"
.net 2.0 c#
Jul 16, 2010 01:35 AM|PassHours|LINK
Is there any anti-virus software running on the system.
It seems that the anti-virus software's e-mail scanning functions were affecting the format of the e-mailed task update in such a way that Outlook could not handle it.
Try disabling the e-mail scanning functionality in the anti virus software.
Hope that helps
Jul 16, 2010 05:38 AM|avinash1245|LINK
I stopped the Antivirus....still same issue :(