public interface Mailer
This interface provides an extensible point for sending an email after the crawl session has been finished. User can override this interface to give their custom implementation for sending an email when the crawl session has finished.
There is an OOTB implementation for Mailer interface - SmtpTlsMailer - which is used to send an email based on SMTP over TLS server. Refer to developer guide to know the usage of SmtpTlsMailer.
Modifier and Type | Method and Description |
---|---|
void |
sendMail(String subject,
String report)
Send an email after the crawl session is completed.
|
void sendMail(String subject, String report)
subject
- Subject for email.report
- Crawler generated report for a crawl session.javax.mail.MessagingException
- Throws a messaging exception in case there is an error in sending the email.IOException