Keep in mind a few caveats when using the SMTPEventConsumer. The first one is most impor-
tant: you must have an SMTP mail server accessible to the computer running the script
because of the way the SMTPEventConsumer is implemented—it forwards the mail message to
a mail server rather than installing its own server.
The second caveat is that you will not be able to send atta
chments with the SMTPEvent-
Consumer. In addition, the mail message will need to be US-ASCII. Other than that, it is a great
way to send e-mail alerts.
Understanding the New Event Consumers
LogFileEventConsumer
The LogFileEventConsumer
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.