public interface MimeMessageSender
Modifier and Type | Method and Description |
---|---|
javax.mail.internet.MimeMessage |
createMimeMessage() |
void |
send(javax.mail.internet.MimeMessage message)
Send the mime message.
|
boolean |
testSettings(Map<ApplicationPropertyMailing,String> settings)
Test the new configuration for sending mime messages.
|
boolean |
testSettings(Map<ApplicationPropertyMailing,String> settings,
javax.mail.internet.MimeMessage testMessage)
Test the new configuration for sending mime messages and send a test message.
|
void |
updateSettings(Map<ApplicationPropertyMailing,String> settings)
Update the configuration of this mime message sender so that it will be used in subsequent
invocations of
send(MimeMessage) . |
javax.mail.internet.MimeMessage createMimeMessage()
void send(javax.mail.internet.MimeMessage message) throws MailingException
message
- the message to sendMailingException
- in case sending failedboolean testSettings(Map<ApplicationPropertyMailing,String> settings)
settings
- the configuration to testboolean testSettings(Map<ApplicationPropertyMailing,String> settings, javax.mail.internet.MimeMessage testMessage)
settings
- the configuration to testtestMessage
- a test message to send. Can be null. In this case the method should behave like
testSettings(Map)
.void updateSettings(Map<ApplicationPropertyMailing,String> settings)
send(MimeMessage)
. Implementations don't need to validate the
settings.settings
- the new settingsCopyright © 2019 Communote team. All rights reserved.