@Role
@Unstable
public interface MailListener
| Modifier and Type | Method and Description |
|---|---|
MailStatusResult |
getMailStatusResult() |
void |
onError(javax.mail.internet.MimeMessage message,
Exception e,
Map<String,Object> parameters)
Called when the mail has failed to be sent.
|
void |
onPrepare(javax.mail.internet.MimeMessage message,
Map<String,Object> parameters)
Called when the mail is ready to be sent but before it is actually sent.
|
void |
onSuccess(javax.mail.internet.MimeMessage message,
Map<String,Object> parameters)
Called when the mail has been sent successfully.
|
void onPrepare(javax.mail.internet.MimeMessage message,
Map<String,Object> parameters)
message - the message to be sentparameters - some parameters specifying addition context data (for example the current wiki is stored under
the wiki key)void onSuccess(javax.mail.internet.MimeMessage message,
Map<String,Object> parameters)
message - the message sentparameters - some parameters specifying addition context data (for example the current wiki is stored under
the wiki key)void onError(javax.mail.internet.MimeMessage message,
Exception e,
Map<String,Object> parameters)
message - the message that was tried to be sente - the exception explaining why the message couldn't be sentparameters - some parameters specifying addition context data (for example the current wiki is stored under
the wiki key)MailStatusResult getMailStatusResult()
MailStatusResult.getSize() to ensure that they get the expected number and if
not wait some moreCopyright © 2004–2015 XWiki. All rights reserved.