Can't send task to 'Tasks Folder' in Outlook

Hi there,

I’m using Aspose to send tasks.Tasks can be sent to the receipts successfully. My question is why the task appears in the To-Do List folder but not the Tasks folder? (my Outlook version is 2010)

Thanks and best regards
Jack

Hi Jack,


Thank you for writing to Asopse Support team.

Could you please share with us your sample code that you are using for sending the task using Aspose API? It will help analyze the issue and assist you further.

Hi Kashif,

Thanks for your reply. My sample code is as follows:
Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone(“EST”));
calendar.set(2016, Calendar.JULY, 20, 0, 0, 0);
Date startDate = calendar.getTime();
calendar.set(2016, Calendar.JULY, 22);
Date endDate = calendar.getTime();
calendar.set(2016, Calendar.JULY, 21,9, 0, 0);
Date remdate = calendar.getTime();
MapiTask task = new MapiTask(“Tasks”, “Just click and type to add new task”, startDate, endDate);
task.setBody(“Hello, there is an issue on STT# 840123456788. The event ARR is missing, please fix this by the due date.”);
task.setReminderSet(true);
task.setReminderTime(remdate);
task.setReminderFileParameter(“C:\Windows\Media\Alarm01.wav”);
task.setPercentComplete(0);
task.setEstimatedEffort(0);
task.setActualEffort(0);
task.getUsers().setAssigner(MapiElectronicAddress.to_MapiElectronicAddress("taylor.chen@dbschenker.com"));
task.setHistory(MapiTaskHistory.Assigned);
task.getUsers().setOwner(“Jack Song”);
task.getUsers().setLastAssigner("taylor.chen@dbschenker.com");
task.getUsers().setLastDelegate("taylor.chen@dbschenker.com");
task.getUsers().setDelegator("taylor.chen@dbschenker.com");
task.getUsers().setOwnership(MapiTaskOwnership.NotAssigned);
String[] companies = {“Johnson & Johnson”, “Acct: 123456”};
task.setCompanies(companies);
String[] categories = {“STT: 123456789”};
task.setCategories(categories);
task.setMileage(“Some test mileage”);
task.setBilling(“Test billing information”);
task.getUsers().setDelegator(“Alerter”);
task.setSensitivity(MapiSensitivity.Personal);
task.setStatus(MapiTaskStatus.NotStarted);
task.save("/opt/tomcat/temp/MapiTask.msg", TaskSaveFormat.Msg);
MailMessageLoadOptions loadOptions = new MailMessageLoadOptions();
loadOptions.setMessageFormat(MessageFormat.getMsg());
loadOptions.setFileCompatibilityMode(FileCompatibilityMode.PreserveTnefAttachments);
// load task from .msg file
MailMessage eml = MailMessage.load("/opt/tomcat/temp/MapiTask.msg", loadOptions);
eml.setFrom(new MailAddress("jack.song@dbschenker.com"));
eml.setSubject(“Tasks hello”);
eml.getTo().clear();
eml.setReadReceiptTo(MailAddressCollection.to_MailAddressCollection("jack.song@dbschenker.com"));
eml.setSensitivity(MailSensitivity.Personal);
// send email to:
MailAddress address = new MailAddress("jack.song@dbschenker.com");
MailAddressCollection addresses = new MailAddressCollection();
addresses.addMailAddress(address);
eml.setTo(addresses);
eml.setDeliveryNotificationOptions(1);
// use EMAS relay
com.aspose.email.SmtpClient client = new com.aspose.email.SmtpClient(“our smtp server”,25,"","");
client.send(eml);

Please help to analyze.Thanks a lot!

Thank you and best regards,
Jack

Hi Jack,


Thank you for the detailed code. However, we are facing another issue while sending a Task using the Aspose.Email API due to which the issue can’t be tested further. We have already logged the problem as EMAILJAVA-34184 in our issue tracking system for further investigation by our Product team. Could you please share with us which version of Aspose.Email API are you using at your end? We have been testing this issue using the latest version of the API i.e. Aspose.Email for Java 6.7.0.

Hi Kashif,

Thanks for your help. Yes, I use the latest version 6.7.0. Will i be posted if you solve this problem?

Thanks and best regards,
Jack

Hi Jack,


Yes, once the issue is resolved, you will be notified automatically about the logged issue.

Hi Kashif,

Thanks a lot! I really appreciate it.
I have another question needs to consult you. Does Aspose Email Java has the ability to read the task which has been sent out?

Thank you and best regards,
Jack

Hi Jack,


Yes, you can use the FetchTask method of IEWSClient to fetch information about the sent task. Please have a look at the code sample in our documentation article and let us know if you need further assistance in this regard.

Hi Kashif,

Thanks for your reply.It help me a lot. I will contact you if i have other question.Thanks again!

Thank you and best ragards,
Jack

Hi Jack,


You are welcome and please feel free to right to us in case of any further query.