There are 6 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-bc18ca6b-31fa-4be8-b9d1-db059ed6ddca XWIKI-15213 Closed

Incompatibility in the Mail API between the factory produced and component accepted types

 
View issue   ยท   Add comment
 

6 updates

 
cid:jira-generated-image-avatar-af068470-b30d-4ca2-a0d4-ef320d681f64 Changes by Manuel Leduc on 08/Oct/26 13:31
 
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Manuel Leduc
Resolution: Won't Fix
Labels: bugfixingday
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-af068470-b30d-4ca2-a0d4-ef320d681f64 Manuel Leduc on 08/Oct/26 13:31
 

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.