Browse our Products

Aspose.Email for Java 21.3 Release Notes

All Changes

KeySummaryCategory
EMAILNET-40117Issue while sending Bulk emailsEnhancement
EMAILNET-40157Implementation of FindPeople Method to find all persona objects that match a specified query stringEnhancement
EMAILNET-40143Add LinkedResource.ContentDisposition propertyEnhancement
EMAILNET-40139PersonalStorageQueryBuilder.Text property doesn’t work for pstEnhancement
EMAILNET-40131Improve error handling for ImapClient.StartMonitoring methodsEnhancement
EMAILNET-40075Aspose.Email failed with exception when deployed in UWP ProjectBug
EMAILNET-40163MSG to HTML - Text color is wrongBug
EMAILNET-40129Error calculating Yearly RecurrencesBug
EMAILNET-40136MailMessage.HtmlBodyText returns excess line breaksBug
EMAILNET-40146Exception on sending email using GraphClientBug
EMAILNET-40150Invalid MailMessage boundaries after Load and SaveBug
EMAILJAVA-34839Getting a predefined folder throws InvalidOperationExceptionBug
EMAILJAVA-34792Value for the header 924057603 (PR_ATTACH_FLAGS) is not properly populatedBug

New Enhancements

Getting information about bulk messages sent

When you send messages in bulk, you can get an information about the number of successfully sent messages and moreover, it is possible to get a list of these messages. A new SucceededSending event was added to SmtpClient for this purpose.

Code sample:

try (SmtpClient client = new SmtpClient(host, SecurityOptions.Auto)) {
    final AtomicInteger messageCount = new AtomicInteger(0);

    client.setSucceededSending(new EventHandler<MailMessageEventArgs>() {
        public void invoke(Object sender, MailMessageEventArgs eventArgs) {
            System.out.println("The message " + eventArgs.getMessage().getSubject() + " was successfully sent.");
            messageCount.incrementAndGet();
        }
    });

    client.send(messages);

    System.out.println(messageCount + " messages were successfully sent.");
}

LinkedResource.ContentDisposition property

A LinkedResource.ContentDisposition property has been added to get Content-Disposition header.

Code sample:

MailMessage eml = MailMessage.load(fileName);
eml.getLinkedResources().get_Item(0).getContentDisposition().setFileName("changed.png");