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()
Publisher
public void publish(LogDistillation logdistillation, LogDistiller.Report report) throws IOException, Publisher.PublishException
Publisher
publish
in class Publisher
logdistillation
- the logdistillation containing the results to publishreport
- the report configurationIOException
Publisher.PublishException
public void publish(LogDistillation.Group group, LogDistiller.Report report) throws IOException, Publisher.PublishException
Publisher
publish
in class Publisher
group
- the logdstillation group containing the results to publishreport
- the report configurationIOException
Publisher.PublishException
protected void sendMail(LogDistillation logdistillation, LogDistiller.Report report, String subject, String content, String mimetype, File attach) throws javax.mail.MessagingException
javax.mail.MessagingException
protected void sendMail(javax.mail.Message msg) throws javax.mail.MessagingException
javax.mail.MessagingException
Copyright © 2004–2014. All rights reserved.