public class EmailValidationMessenger extends Object implements dk.heick.properties.collections.validationhandlers.ValidationMessenger
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TRANSPORT_PROTOCOL_SMTP
The default transport protocol "smtp".
|
static String |
ENCODING
The message will be encoded with "ISO-8859-1".
|
Constructor and Description |
---|
EmailValidationMessenger(dk.heick.properties.Property<String> fromAddress,
dk.heick.properties.Property<InetAddress> mailSmtpHost)
Constructor.
|
EmailValidationMessenger(dk.heick.properties.Property<String> fromAddress,
dk.heick.properties.Property<InetAddress> mailSmtpHost,
dk.heick.properties.Property<String> mailTransportProtocol)
Constructor.
|
EmailValidationMessenger(String fromAddress,
String mailSmtpHost)
Constructor.
|
EmailValidationMessenger(String fromAddress,
String mailSmtpHost,
String mailTransportProtocol)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getFromAddress()
The from address property
|
String |
getMailSmtpHost()
The mail host.
|
String |
getMailTransportProtocol()
The mail transport protocol.
|
void |
sendMessage(String[] to,
String subject,
List<String> messages) |
public static final String DEFAULT_TRANSPORT_PROTOCOL_SMTP
public static final String ENCODING
public EmailValidationMessenger(String fromAddress, String mailSmtpHost)
fromAddress
- the property "mail.host"mailSmtpHost
- the property "mail.smtp.host"public EmailValidationMessenger(String fromAddress, String mailSmtpHost, String mailTransportProtocol)
fromAddress
- the from address set on the email.mailSmtpHost
- the property "mail.smtp.host"mailTransportProtocol
- the mail transport protocol.public EmailValidationMessenger(dk.heick.properties.Property<String> fromAddress, dk.heick.properties.Property<InetAddress> mailSmtpHost)
sendMessage
method is executed.fromAddress
- the from address set on the email.mailSmtpHost
- the mail host.public EmailValidationMessenger(dk.heick.properties.Property<String> fromAddress, dk.heick.properties.Property<InetAddress> mailSmtpHost, dk.heick.properties.Property<String> mailTransportProtocol)
sendMessage
method is executed.fromAddress
- the from address set on the email.mailSmtpHost
- the mail host.mailTransportProtocol
- the mail transport protocol.public String getFromAddress()
public String getMailSmtpHost()
public String getMailTransportProtocol()