public interface MailSender
MailMessage
s into MimeMessages and
uses a MimeMessageSender
to transport them.Modifier and Type | Method and Description |
---|---|
void |
send(MailMessage message)
Send the given message.
|
boolean |
testSettings(Map<ApplicationPropertyMailing,String> settings)
Test the given mail-out configuration.
|
boolean |
testSettings(Map<ApplicationPropertyMailing,String> settings,
MailMessage testMessage)
Test the given mail-out configuration and send a test message.
|
void |
updateSettings(Map<ApplicationPropertyMailing,String> settings)
Update the mail-out configuration so that subsequent calls to
send(MailMessage) will
use the new settings. |
void send(MailMessage message) throws MailingException
message
- MailingException
- in case there was an error sending the messageboolean testSettings(Map<ApplicationPropertyMailing,String> settings)
MimeMessageSender
this
might include a connection test with the server.settings
- the settings to testboolean testSettings(Map<ApplicationPropertyMailing,String> settings, MailMessage testMessage)
settings
- the settings to testtestMessage
- the test message to sendvoid updateSettings(Map<ApplicationPropertyMailing,String> settings) throws ConfigurationUpdateException
send(MailMessage)
will
use the new settings. This method won't test the settings for validity.settings
- the new configurationConfigurationUpdateException
- in case the configuration could not be updatedCopyright © 2019 Communote team. All rights reserved.