Dear Aspose Support Team,
We are currently using Aspose.Email to interact with Outlook contacts in our application. Specifically, we are attempting to delete contact items using the DeleteItem method provided by Aspose.Email.
Here’s the code we are using:
client.DeleteItem(OutlookID, DeletionOptions.DeletePermanently);
This code works perfectly fine for older versions of Outlook, but we are facing an issue when trying to delete contacts in the web version. The contacts do not get deleted, and we do not receive any error messages or exceptions.
We would greatly appreciate your assistance in troubleshooting this issue. Can you please provide guidance on how to ensure contact deletion works consistently across different versions of Outlook, including the web version?
If there are any code changes or configurations we need to make to address this issue, please let us know. We are eager to resolve this problem and ensure the reliable deletion of contacts across all Outlook versions.
Additionally, we’d like to bring to your attention another issue. When we upgraded to Aspose.Email version 23.8, we encountered the following error related to the code snippet below:
image.png (11.0 KB)
Contact con = client.GetContact(OutlookID, ExchangeListContactsOptions.None);
MapiContact _c = (MapiContact)con;
_c.PhysicalAddresses.WorkAddress.IsMailingAddress = check1 == 1 ? true : false;
the error occurs in the code: sID = client.CreateItem(client.GetMailboxInfo(senderEmail).ContactsUri, _c);
Can you please assist us in resolving this issue as well?
Thank you for your prompt attention to these matters. We look forward to your guidance and assistance.
Best regards,