@Role
public interface MailSender
Modifier and Type | Method and Description |
---|---|
MailResult |
sendAsynchronously(Iterable<? extends javax.mail.internet.MimeMessage> messages,
javax.mail.Session session,
MailListener listener)
Send a list of mails asynchronously (the call returns immediately).
|
MailResult sendAsynchronously(Iterable<? extends javax.mail.internet.MimeMessage> messages, javax.mail.Session session, MailListener listener)
messages
- the list of messages to sentsession
- the JavaMail session containing all the configuration for the SMTP host, port, etclistener
- a listener called when the mail is sent successfully or when there is an errorCopyright © 2004–2022 XWiki. All rights reserved.