Emailer Plugin (extras)
A plugin that send emails when events occur.
Plans to enhance the plugin with rules similar to the execute plugin. Ideas include:
- delay before sending mail (0...5 min, files probably is still locked)
- delete files after sending
- archive files in one archive (a lot of small files)
Leaving scheduling out of the plugin for now unless there is demand for it. Having advanced scheduling for when to send emails at a specific time would be a powerful feature although complex for the small potential usage.
Windows scheduling should suffice for most scenarios and the current rules/options are sufficient to get notified when changes occur rather than a full scheduling setup.
-
Anonymous commented
- delete files after sending
---------------
Removal after sending will be realized? -
Ignoring the requests for file manipulation in the plugin. Things like deleting and archiving files can be automated in custom ways with scripts or custom plugins for Directory Monitor and should not be a function of the emailer plugin itself.
The following improvements have been made to the Emailer Plugin in v2.4.0.0:
- Rule added for sending a single email after a configured number of events.
- Rules added for sending a single email after a configured period of inactivity.
- Automatic retry of failed emails (network problems etc.).
- New macro editor to construct custom emails containing information about the events.Coming soon:
- Schedule emails to send daily or hourly based on rule configuration. -
Hi Peter,
The single email problem is being addressed, you will be able to control emails via rules similar to executing applications. With a certain number of events combined with a delay or after a period of inactivity. Having an email sent daily with all changes is actually a great idea so I will consider adding preset intervals as well to simplify this.
Each email will have the attachments and body duplicated for each event that occurred during the configured period. You can augment your emails with links by adding them to the body HTML as anchor tags so there is no need for a separate attachment for all the changes, they will all be in the body of each email. The new macro editor will help make this easier as well.
Auto-cleaning of archives is outside of the scope of the an emailer plugin. You can already control the archiving options on the text log (daily, hourly etc.). You can also facilitate your own archiving solutions via scripts in the execute application section such as zipping or moving logs after a set number of events, file size and such. In time I will probably make these options available natively as well.
Werner
-
Peter commented
It would also be very nice to add an automatic attachment displaying the the last events only that was detected (changed files or so) eventually with clickable links to the files or directories changed.
By now I have to attach the whole log, but that becomes soon to heavy as all changes are accumulating there.And of course, having a auto-cleaning of the archives with various parameters (by size, or by time, etc.)
I think the delay idea before sending mails is good, sometimes even just a scheduler, as people in my work would be happy just to receive one mail a day about the whole changes occuring in one directory set in place of one mail per file changed!