snapshot icon indicating copy to clipboard operation
snapshot copied to clipboard

Enhancement: Automated emailing of the report

Open hamelsveld opened this issue 8 years ago • 3 comments

It would be great if we could automatically email the report to one or more recipients after generation.

I think what's needed is at least: General smtp_host: smtp_user: smtp_passwd:

per rule recipients: subject: From:

Alternatively what also would be a great solution is to put the report behind a single time valid download URL and email just the link but this link must in that case be available without userid/passwd. and store the files in the tool for a to configurable time just in case the link failed or other people want to have the report too.

hamelsveld avatar Jul 08 '16 09:07 hamelsveld

+1 is there any progress on this? @parvez: Are you still working on this code? Emailing would be a nice (speak: fundamentally important in my application) feature.

bbczeuz avatar Aug 23 '16 08:08 bbczeuz

Well, I would +1 this as well,

My solution, knowing that the generation of the report is based on a cronjob. I was going to create a cron that would find the different reports and just email them. This would be a simple thing to implement.

But as I was thinking about this, we might be able to added it to the helper_generate javascript to email the file prior to exiting. Maybe I will look at this as an idea.

eperry avatar Aug 28 '16 01:08 eperry

Here is basically the rule I would write. might have to fix it up to wrok correctly

*/5 * * * * find <DATADIR> -name \*.pdf -exec mailx -a {} -s "Report for {}" <email> \;

eperry avatar Aug 28 '16 01:08 eperry