With Aspose.Email for Java 19.2, when I create a new appointment, the option “Request response” is not active.
Attendees can not answer …
How to enable this option when creating the appointment by Java code?
I have observed your requirements and suggest you to please visit this documentation link for your kind reference. If you still have any inquiry then please provide the working sample code along with details of requirements in the form of required output with us.
// Les attendus : la salle de réunion MailAddressCollection attendus = new MailAddressCollection(); MailAddress salle = new MailAddress(salleDeReunion.getMail(), salleDeReunion.getTitle()); attendus.addMailAddress(salle); // Construction du RDV Appointment monRdv = new Appointment(salleDeReunion.getTitle(), null, null, null, attendus); monRdv.setMethodType(AppointmentMethodType.Publish); // Construction du message AlternateView view = monRdv.requestApointment(); MailMessage mail = new MailMessage(); mail.addAlternateView(view); // Sauvegarde OFT String oftFileName = "test.oft"; MsgSaveOptions options = new MsgSaveOptions(MailMessageSaveType.getOutlookMessageFormatUnicode()); options.setSaveAsTemplate(true); mail.save(oftFileName, options);
The appointment :
image.png (49.7 KB)
The request :
slight_smile:image.png (15.2 KB)
I want a response from the attendees…
I have worked with the sample example shared by you and output OFT file does not seem to have option for Request Response set. An issue with ID EMAILJAVA-34551 has been created in our issue tracking system to further investigate the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.
do you have a delivery date for this issue please ?
It is becoming urgent…
We have internally investigated the issue in detail. We need to use KnownPropertyList.ResponseRequested property:
MapiMessage msg = MapiMessage.fromMailMessage(mail); // Save the appointment as draft. msg.setProperty(KnownPropertyList.ResponseRequested, true); String oftFil eName2 = "C:\\Email\\test2.oft"; msg.save(oftFileName2);
It works !!