Aspose Mail MapiContact Birthday

Hello Kashif,

I am working with the library Aspose.Email in Java and I have the problem that I‘ m not able to add a brithday/anniversary to MapiContact.

I have seen your following post: Working with Outlook Contacts|Documentation

I have used the class MapiContactEventPropertySet to create a brithday/anniversary. But I can’t see the created birthday in Outlook.

Can you please help me. Perhaps there is a date format problem.

My code is:

String date = “2005/10/14”;

java.util.Date birthday = null ;

try {

SimpleDateFormat formatter = new SimpleDateFormat(“yyyy/MM/dd”);

birthday = formatter.parse(date);

} catch (ParseException e) {

e.printStackTrace();

}

// set time to 00:00:00

long HOUR = 3600*1000;

Date anniversary = new Date(birthday.getTime() + 2 * HOUR);

MapiContactEventPropertySet event = new MapiContactEventPropertySet();

// Fri Oct 14 00:00:00 CEST 2005 → formatted time to 00:00:00

event.setWeddingAnniversary(anniversary);

event.setBirthday(birthday);

// add to MapiContact

contact.setEvents(event);

Thank you very much and best regards,

Mona Basit

This message was posted using Email2Forum by Kashif Iqbal.

Hi Mona,


We are sorry for the inconvenience caused to you in this regard.

I have investigated this issue further and was able to observe the issue with the mentioned properties using the latest version of Aspose.Email for Java 3.4.0. This issue has been logged as NETWRKJAVA-33317 in our issue tracking system for further investigation by the development team and will update you here once fix version is available in this regard.

Hi,

Do you have an idea when the bug fix will be available?


Best Regards,
Mona

Hi Mona,


Thank you for writing to us.

We will be releasing Aspose.Email for Java 3.6.0 in a couple of days where this issue is planned to be fixed. You’ll be notified automatically via this thread once the fix version is available for this issue. We appreciate you little more patience in this regard.

The issues you have found earlier (filed as NETWRKJAVA-33317) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.