我已经尝试了以下代码,运行良好,但它仅将提醒发送到执行脚本的计算机的 Outlook。
// create outlook object
var objOutlook = new ActiveXObject( "Outlook.Application" );
var olAppointmentItem = 1; //fixed for different properties of outlook object
var objAppointment = objOutlook.CreateItem(olAppointmentItem);
objAppointment.ReminderSet = true;
objAppointment.Categories = 'Yellow Category';
objAppointment.Subject = subject;
objAppointment.Location = 'My Location';
objAppointment.RequiredAttendees = 'test@test.com';
objAppointment.Recipients.Add('test@test.com');
objAppointment.Start = appDate;
var duration = 2;
objAppointment.ReminderMinutesBeforeStart = 60 * 24 * 7;
objAppointment.Duration = duration;
objAppointment.Save();
objAppointment.Send();
最佳答案
到底是什么不起作用?如果您想发送 session 请求,请在添加收件人后调用 AppointmentItem.Send
。
关于JavaScript - 是否可以在 Outlook 约会中添加收件人并向与会者发送邀请?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40584814/