public class CatchAllSmtpMimeMessageSender extends SmtpMimeMessageSender
Constructor and Description |
---|
CatchAllSmtpMimeMessageSender(Map<ApplicationPropertyMailing,String> settings,
String catchAllAddress) |
Modifier and Type | Method and Description |
---|---|
void |
send(javax.mail.internet.MimeMessage message)
Send the mime message.
|
boolean |
testSettings(Map<ApplicationPropertyMailing,String> settings,
javax.mail.internet.MimeMessage testMessage)
Test the new configuration for sending mime messages and send a test message.
|
createMimeMessage, createSender, testConnection, testSettings, updateSettings
public CatchAllSmtpMimeMessageSender(Map<ApplicationPropertyMailing,String> settings, String catchAllAddress)
public void send(javax.mail.internet.MimeMessage message) throws MailingException
MimeMessageSender
send
in interface MimeMessageSender
send
in class SmtpMimeMessageSender
message
- the message to sendMailingException
- in case sending failedpublic boolean testSettings(Map<ApplicationPropertyMailing,String> settings, javax.mail.internet.MimeMessage testMessage)
MimeMessageSender
testSettings
in interface MimeMessageSender
testSettings
in class SmtpMimeMessageSender
settings
- the configuration to testtestMessage
- a test message to send. Can be null. In this case the method should behave like
MimeMessageSender.testSettings(Map)
.Copyright © 2019 Communote team. All rights reserved.