Hi
I am trying to send meeting email to outlook user from asp.net
my code is as follows:
Dim oAppointment As Microsoft.Office.Interop.Outlook.AppointmentItem = oApplication.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olAppointmentItem)
oAppointment.Subject =
"Testing Appointments with OOM in VB.NET"
oAppointment.Body =
"Test Appointment"
oAppointment.Start = appointmentdate
oAppointment.End = appointmentdate.AddHours(1)
oAppointment.ReminderSet =
True
oAppointment.ReminderMinutesBeforeStart = 5
' oAppointment.BusyStatus = Microsoft.Office.Interop.Outlook.OlBusyStatus.olTentative
oAppointment.MeetingStatus = OlMeetingStatus.olMeeting
oAppointment.AllDayEvent =
False
oAppointment.RequiredAttendees =
someemail@address.com
oAppointment.Send()
oAppointment =
Nothing
oApplication =
Nothing
I get the error message "Exception from HRESULT: 0x80004004 (E_ABORT)"
Am I doing somthing wrong? what is the right way? Thanks in advance.