Browse our Products

Aspose.Email for .NET 26.1 Release Notes

All Changes

KeySummaryCategory
EMAILNET-41576Add asynchronous methods to Aspose Google client.Enhancement
EMAILNET-41502FindAndExtractSoftDeletedItems method not detecting deleted messages in OST filesBug
EMAILNET-41677MSG to EML CSS conversion of !important tagBug

New Features

Asynchronous Methods Added to Aspose Google Client

The Aspose Google client now supports fully asynchronous operations, enabling non‑blocking calls for Gmail, Calendar, and Contacts services. This improves application responsiveness and scalability when integrating with Google APIs.

Public API Changes:

  • IGmailClientAsync - Provides an interface with asynchronous operations for the Gmail client.

Code Example:

static async Task Main()
{
    IGmailClientAsync client = GmailClient.GetInstanceAsync(clientId, clientSecret, refreshToken, email);

    var messages = await client.ListMessagesAsync();
    Console.WriteLine("Messages Count :" + messages.Count);

    var msg = await client.FetchMessageAsync(messages[0].Id);
    Console.WriteLine("FetchMessage First :" + msg.Subject);

    var filters = client.ListFilters();
    Console.WriteLine("Filters Count :" + filters.Count);

    ExtendedCalendar[] calendars = await client.ListCalendarsAsync();
    Console.WriteLine("Calendars Count :" + calendars.Length);

    Appointment[] appointments = await client.ListAppointmentsAsync(calendars[0].Id);
    Console.WriteLine("Appointments Count :" + appointments.Length);

    Contact[] contacts = await client.GetAllContactsAsync();
    Console.WriteLine("GetAllContacts Count :" + contacts.Length);
}