public class ErrorMessageMailer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT |
static String |
MAIL_TEMPLATE |
static String |
TIME_FORMAT |
| Constructor and Description |
|---|
ErrorMessageMailer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
sendErrorMail(ErrorMail errorMail)
Sends the error message by mail.
|
void |
setErrorMailTo(String errorMailTo)
Setter for the mailto address (injected by Spring)
|
void |
setMailSender(org.springframework.mail.javamail.JavaMailSender mailSender) |
public static final String MAIL_TEMPLATE
public static final String DATE_FORMAT
public static final String TIME_FORMAT
public boolean sendErrorMail(ErrorMail errorMail)
errorMail - the ErrorMail object containing error mail propertiespublic void setMailSender(org.springframework.mail.javamail.JavaMailSender mailSender)
public void setErrorMailTo(String errorMailTo)
errorMailTo - mailto address to setCopyright © 2009–2013 SURFnet bv, The Netherlands. All rights reserved.