public class DailyReportEmailer extends Object
The email reporter creates and sends emails to an administrator. This only reports information for today's date. It is expected this will be used just after the checksum checker has been run.
| Constructor and Description |
|---|
DailyReportEmailer()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Allows users to have email sent to them.
|
void |
sendReport(File attachment,
int numberOfBitstreams)
Send the report through email.
|
public void sendReport(File attachment, int numberOfBitstreams) throws IOException, javax.mail.MessagingException
attachment - the file containing the reportnumberOfBitstreams - the number of bitstreams reportedIOException - if IO exception occursjavax.mail.MessagingException - if message cannot be sent.public static void main(String[] args)
args - Copyright © 2016 DuraSpace. All rights reserved.