我正在使用Ical4j API 从我的 gmail id 发送会议邀请,但如何设置
VEvent meeting = new VEvent(startDt, dur, subject);
VEvent
反对邮件 API 类
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress("myemail82@gmail.com"));
message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("recepent@gmail.com"));
message.setSubject("Testing Subject");
message.setText("Dear Mail Crawler," + "\n\n No spam to my email, please!");
Transport.send(message);
我正在尝试这样的事情
message.setContent(meeting, "MyMeeting");
但它抛出异常。任何想法我该怎么做?