public class MailPublisher extends Publisher
mail.smtp.host, but see JavaMail documentation to find all available properties.
Parameters:
to, cc (at least one): recipients of the mail, comma separated values if multiple
recipients
from (default: smtp.from global output parameter, or
logdistiller@sourceforge.net
attachLogs (default: true): add corresponding logevents as attachment
Publisher.PublishException| Constructor and Description |
|---|
MailPublisher() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Get the publisher-id for this class.
|
void |
publish(LogDistillation.Group group,
LogDistiller.Report report)
Publish a group report.
|
void |
publish(LogDistillation logdistillation,
LogDistiller.Report report)
Publish a global report.
|
protected void |
sendMail(LogDistillation logdistillation,
LogDistiller.Report report,
String subject,
String content,
String mimetype,
File attach) |
protected void |
sendMail(javax.mail.Message msg) |
public MailPublisher()
public String getId()
Publisherpublic void publish(LogDistillation logdistillation, LogDistiller.Report report) throws IOException, Publisher.PublishException
Publisherpublish in class Publisherlogdistillation - the logdistillation containing the results to publishreport - the report configurationIOExceptionPublisher.PublishExceptionpublic void publish(LogDistillation.Group group, LogDistiller.Report report) throws IOException, Publisher.PublishException
Publisherpublish in class Publishergroup - the logdstillation group containing the results to publishreport - the report configurationIOExceptionPublisher.PublishExceptionprotected void sendMail(LogDistillation logdistillation, LogDistiller.Report report, String subject, String content, String mimetype, File attach) throws javax.mail.MessagingException
javax.mail.MessagingExceptionprotected void sendMail(javax.mail.Message msg) throws javax.mail.MessagingException
javax.mail.MessagingExceptionCopyright © 2004–2014. All rights reserved.