See below for a snippet of how to handle the limitation described in this issue
Iterator<MimeMessage> messages = this.factory.createMessage(source, parameters);
// See the lambda, a construct that is now supported by all the Java versions we support.
this.mailSender.sendAsynchronously(() -> messages, session, this.listener);
Please reopen as an improvement if needed.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.