I found how to create a Draft mail message in MSG format, I’d like to create an appointment request but I can’t see a way to do that. Appointment class requires all the parameters and there is no way to make such a MSG draft.
// create the appointment
app.Summary = “meeting request summary”;
app.Description = “description”;
// create the message and set the meeting request
MailMessage msg = new MailMessage();
msg.From = "firstname.lastname@example.org";
msg.To = "email@example.com";
msg.TextBody = “Email Message detail”;
msg.Subject = “meeting request”;
MapiMessage mapi = MapiMessage.FromMailMessage(msg);
I already tried that, but it doesn’t open the msg file as Draft, but as a saved, not modifiable appointment. And I don’t want to provide any meeting details in that draft appointment request, I just need to create an empty draft appointment request with some attachments, so the user can open and and provide the details.
Please not that that concerns Java version. Can you let me know how can I track this issue? We plan to purchase Aspose Total in January, but we need to know the status of this by then as we need to let the customer know whether it is possible or not.
The issues you have found earlier (filed as NETWORKNET-33606) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
What about Java version? I need that functionality in Java edition. Please let me know when it’s released and how to use it.
What if I don’t know the organizer and recipients? Can I leave the leave those two parameters empty?
Ah, so it doesn’t actually help it. When a draft appointment is generated I don’t know the recipients, the actual user which will open the appointment needs to fill it in. And the organizer is also not known, it depends how opens the draft.
I can see that no matter what organizer email is set, when I open the draft appointment it defaults to my account (as the provided organizer email may be not configured), so that is fine. The only enhancement I need in that case is a possibility of leaving recipients empty.
One more thing. How to add a line break inside the appoinment description? I tried “\n”, “\r\n” or even “
”, but it doesn’t work:(
Date startDate = new Date();
Date endDate = new Date();
MailAddressCollection attendees = new MailAddressCollection();
MailAddress organizer = null;
Appointment app = new Appointment(“Location name”, “my summary”, “description1\rdescription2\rdescription3”, startDate, endDate, organizer, attendees);
//Set the Appointment as Draft
MapiMessage mapiMsg = MapiMessage.fromMailMessage(message);
When I run this code from my PC it works fine, when I run it on my server I get a strange exception:
We are sorry for any inconvenience caused.
Can you please more details about your production environment, as I was unable to reproduce this issue at my end using the latest version of Aspose.Email for Java 2.7.0. Please provide complete information about your server, tomcat installed, and your application. It'll be of added benefit if you could provide us some test project to reproduce this issue at our end, as with my sample code I am unable to reproduce this issue. We'll look into these details and assist you further as soon as possbile.
MapiMessage msg = MapiMessage.fromMailMessage(message);