gropolenko
New Member
Hello i want to send a calendar invite to other members, how can i do that in vb.net, i added the exchange webreference and can send a normal mail to other people.here is what i have so far\[code\] Public Sub Einladungen() Dim esb As New ExchangeServer.ExchangeServiceBinding esb.Credentials = New NetworkCredential(Session("EX_UserName").ToString, Session("EX_Password").ToString) esb.Url = Session("EX_DomainURL") Dim appointment As CalendarItemType = New CalendarItemType ' Set properties on the appointment. appointment.Subject = "Dentist Appointment" appointment.Body = New BodyType appointment.Body.BodyType1 = BodyTypeType.Text appointment.Body.Value = "http://stackoverflow.com/questions/12638535/Agenda Items...." appointment.Start = New DateTime(2012, 3, 1, 9, 0, 0) appointment.End = appointment.Start.AddHours(2) appointment.Location = "Conf Room" appointment.RequiredAttendees.Add("[email protected]") appointment.RequiredAttendees.Add("[email protected]") appointment.OptionalAttendees.Add("[email protected]") ' Save the appointment. appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy) End Sub\[/code\]Visual Studio tells me that:\[quote\] Add is not a member of "System.Array"\[/quote\]and\[quote\] "Save" is not a member of "ExchangeServer.CalendarItemType"\[/quote\]and \[quote\] The name "SendInvitationMode" is not declared\[/quote\]What am i missing? Thanks in advance for your help