Aspose.Email for C++ V25.2
Released: Mar 14, 2025
Updates in V25.2
Features
- Enhanced support for managing messages through the IGmailClient interface. These updates allow developers to list, fetch, append, send, and delete messages.
- Managing Gmail Messages:
- List Messages: Retrieve all messages in a mailbox using the ListMessages() method, which returns a list of GmailMessageInfo objects.
- Fetch Message: Access the full content of a specific message with FetchMessage(String id), returning a MailMessage instance.
- Send Messages: Use the SendMessage(SharedPtr<MailMessage> msg) method to send messages directly.
- Append Messages: Add messages directly to a Gmail mailbox, bypassing standard classification. You can use:
- AppendMessage(SharedPtr<MailMessage> msg) for default behavior.
- AppendMessage(SharedPtr<MailMessage> msg, String labelName) to specify a custom label.
- Delete Messages: Remove messages using:
- DeleteMessage(String id, bool moveToTrash) to either move messages to the trash or delete them permanently.
- DeleteMessage(String id) for immediate, permanent deletion.
- Managing Gmail Filters:
- List Filters: Retrieve all filters applied to the mailbox using the ListFilters() method.
- Create Filters: Add a new filter with custom criteria and actions using CreateFilter(SharedPtr<Filter> filter).
- Get Filter: Fetch specific filter details using GetFilter(String id).
- Delete Filters: Permanently remove filters with DeleteFilter(String id).
- New Supporting Classes:
- GmailMessageInfo: Represents a lightweight message object containing Id and ThreadId.
- Filter: Defines Gmail filter resources, including matching criteria and actions.