outlook怎么创建周期重复的日历?

Outlook Calendar有开发文档吗

我想通过java代码在outlook创建一个重复的日历,创建一个每天、每周重复的日历,要怎么实现

我尝试过这种,但是只能创建连续的日历,没有办法创建周期重复的日历

String  MEETING_DATE_NEW=DateUtil.getdate(START_DATE, i);

//System.out.println("MEETING_DATE_NEW:"+MEETING_DATE_NEW);

StringBuilder eventData = new StringBuilder();

eventData.append("BEGIN:VCALENDAR\n");

eventData.append("VERSION:2.0\n");

eventData.append("PRODID: -//IPSOS Company//Outlook MIMEDIR//EN\n");

eventData.append("METHOD:REQUEST\n");//CANCEL

//eventData.append("METHOD:CANCEL\n");//CANCEL

eventData.append("BEGIN:VEVENT\n");

String uuid = UuidUtil.get32UUID();

//String uuid = "fbb23c0a6f504da0ae0bdef2f3fbfc6d";

eventData.append("UID:"+uuid+"\n");//

System.out.println(uuid);

eventData.append("DTSTART:" + initDtTime(MEETING_DATE_NEW,START_TIME)+ "\n");

eventData.append("DTEND:" + initDtTime(MEETING_DATE_NEW,END_TIME) + "\n");

eventData.append("LOCATION:" + ROOM_NAME + "\n");

eventData.append("DESCRIPTION:" + MAIL_CONTENT + "\n");

eventData.append("SUMMARY:" + MEETING_TITLE + "\n");

eventData.append("PRIORITY:5\n");

eventData.append("SEQUENCE:3\n");

eventData.append("CLASS:PUBLIC\n");

eventData.append("END:VEVENT\n");

eventData.append("END:VCALENDAR");

// 发送日历事件

message = new MimeMessage(session);

message.setFrom(new InternetAddress(MailChannelRouteImpl.MAIL_FROM));

message.addRecipients(Message.RecipientType.TO, recipients);

//message.setSubject(MEETING_TITLE);

message.setSubject(MimeUtility.encodeText(MEETING_TITLE, "UTF-8", "B"));

message.setContent(eventData.toString(), "text/calendar;charset=UTF-8;method=REQUEST");

transport = session.getTransport("smtp");

transport.connect(MailChannelRouteImpl.MAIL_HOST, MailChannelRouteImpl.MAIL_USER, MailChannelRouteImpl.MAIL_PWD); // 填写正确的用户名和密码

//transport.connect(); // 填写正确的用户名和密码

transport.sendMessage(message, message.getAllRecipients());

transport.close();

以上是 outlook怎么创建周期重复的日历? 的全部内容, 来源链接: utcz.com/p/945498.html

回到顶部