Hi,
I was wondering if there is some way to set the format of Exchange contact notes? When I update a contact on Exchange server, the notes turn to HTML.
Hi,
I was wondering if there is some way to set the format of Exchange contact notes? When I update a contact on Exchange server, the notes turn to HTML.
Hi Aaron,
Thank you for posting your query.
You can format the Contact Notes in Html or Plain text format using the NotesFormat property of the Contact class. Please try the following code sample at your end and share your feedback with us.
Code:
Contact contact = new Aspose.Email.Mail.Contact();
contact.DisplayName = "ContactInHtmlNotes";
contact.NotesFormat = TextFormat.Html;
contact.Notes = "Notes in Bold format - HTML";
IEWSClient client = GetAsposeEWSClient();
client.CreateContact(contact);
Hi Waqas,
Thank you for the sample code. It works. By the way, out of curiosity, I just saved the contact to disc as Msg and the HTML tags are visible in the Notes field. Can you please check if there is somethign wrong with the code?
Hi Aaron,
The issues you have found earlier (filed as EMAILNET-34792) have been fixed in this update.