I am trying to create an appointment in the Microsoft Outlook (2003) calender of another person using the below code.While running this program, The Appointment is getting s
After you have the appointment:
Outlook.MailItem mailItem = appt.ForwardAsVcal();
mailItem.To = "recipient's email address";
mailItem.Send();
Here is how I fixed this issue :
I put (like Sonny Boy's post) :
Outlook.MailItem mailItem = appt.ForwardAsVcal();
mailItem.To = "firstname.lastname@email.com";
mailItem.Send();
But I also had to create a web.config file, and to set up the authorization access to avoid any COMException :
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
Try adding:
appt.MeetingStatus = Microsoft.Office.Interop.Outlook.OlMeetingStatus.olMeeting;
Default status is an appointment which I'm not sure is being sent.