@FunctionalInterface
public interface MessageEditor
MessagingExceptions thrown by MimeMessage.
This interface will typically be implemented by lambda expressions passed to
EmailSender.send(MessageEditor). See the JavaDoc of that method for an example.
| Modifier and Type | Method and Description |
|---|---|
void |
edit(javax.mail.internet.MimeMessage message)
Implementations of this method modify the given message.
|
void edit(@Nonnull
javax.mail.internet.MimeMessage message)
throws java.lang.Exception
EmailSender.send(MessageEditor) for an example of a lambda expression that implements this interface.message - the message to modifyjava.lang.Exception - if modification fails