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, updateSettingspublic CatchAllSmtpMimeMessageSender(Map<ApplicationPropertyMailing,String> settings, String catchAllAddress)
public void send(javax.mail.internet.MimeMessage message)
throws MailingException
MimeMessageSendersend in interface MimeMessageSendersend in class SmtpMimeMessageSendermessage - the message to sendMailingException - in case sending failedpublic boolean testSettings(Map<ApplicationPropertyMailing,String> settings, javax.mail.internet.MimeMessage testMessage)
MimeMessageSendertestSettings in interface MimeMessageSendertestSettings in class SmtpMimeMessageSendersettings - 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.