net.sf.logdistiller.publishers
Class MailPublisher
java.lang.Object
net.sf.logdistiller.Publisher
net.sf.logdistiller.publishers.MailPublisher
public class MailPublisher
- extends Publisher
Send mail report of a LogDistillation. When the report is a group report, a file containing logevents (if saved) is
added as attachment. Global output parameters are used as JavaMail session properties: the most important property is
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailPublisher
public MailPublisher()
getId
public String getId()
- Description copied from class:
Publisher
- Get the publisher-id for this class.
- Specified by:
getId in class Publisher
- Returns:
- a unique publisher id
publish
public void publish(LogDistillation logdistillation,
LogDistiller.Report report)
throws IOException,
Publisher.PublishException
- Description copied from class:
Publisher
- Publish a global report.
- Specified by:
publish in class Publisher
- Parameters:
logdistillation - the logdistillation containing the results to publishreport - the report configuration
- Throws:
IOException
Publisher.PublishException
publish
public void publish(LogDistillation.Group group,
LogDistiller.Report report)
throws IOException,
Publisher.PublishException
- Description copied from class:
Publisher
- Publish a group report.
- Specified by:
publish in class Publisher
- Parameters:
group - the logdstillation group containing the results to publishreport - the report configuration
- Throws:
IOException
Publisher.PublishException
sendMail
protected void sendMail(LogDistillation logdistillation,
LogDistiller.Report report,
String subject,
String content,
String mimetype,
File attach)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
sendMail
protected void sendMail(javax.mail.Message msg)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
Copyright © 2004-2009. All Rights Reserved.