Code:
function AddCalendarAppointment(appointmentSubject,appointmentBody,travelLocation,departDate,returnDate) {
outlookApp = new ActiveXObject("Outlook.Application");
nameSpace = outlookApp.getNameSpace("MAPI");
// Get a handle of the Calendar folder
apptFolder = nameSpace.getDefaultFolder(9);
// Create a new Appointment item and fill
Leave a comment: