public class EmailSender
extends java.lang.Object
| Constructor and Description |
|---|
EmailSender()
Reads config properties from config file and creates a session that can
be used to send e-mails.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
For testing
|
void |
send(java.lang.String recipients,
java.lang.String subject,
java.lang.String messageBody)
Sends e-mail to the specified recipients.
|
public EmailSender()
public void send(java.lang.String recipients,
java.lang.String subject,
java.lang.String messageBody)
recipients - Comma separated list of recipient e-mail addressessubject - Subject for the e-mailmessageBody - The body for the e-mailpublic static void main(java.lang.String[] args)
args -