|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
void |
sendMail(java.lang.String subject,
java.lang.String report)
Send an email after the crawl session is completed. |
Method Detail |
---|
void sendMail(java.lang.String subject, java.lang.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.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |