public class ResultMailer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FROM
mail.from specifies the sender of the exception email
|
static java.lang.String |
SMTP
mail.smtp.host specifies the smtp server you want to use
|
static java.lang.String |
SUBJECT
mail.subject specifies the subject of the exception email
|
static java.lang.String |
TO
mail.to specifies the recipient of the exception email
|
Constructor and Description |
---|
ResultMailer(java.util.Properties props)
The four key strings' SMTP, SUBJECT, FROM and TO values must be set in
the passed in properties
|
Modifier and Type | Method and Description |
---|---|
void |
mail(java.lang.String message,
java.lang.String bodyText,
java.util.List sections) |
public static final java.lang.String SMTP
public static final java.lang.String TO
public static final java.lang.String FROM
public static final java.lang.String SUBJECT
public ResultMailer(java.util.Properties props) throws MissingPropertyException
MissingPropertyException