output_email E-MAIL
Email address to send the reports to. If you use this tag, no html reports will be generated.
If E-MAIL
is stdout
, the e-mail is written to the standard output instead of being sent.
Set E-MAIL
to none
to disable e-mail sending and return to the default behavior of generating HTML reports.
Default value is none
.
mail_utility PROGRAM
Mail command to use to send reports via SMTP. Sarg calls it like this:
mail_utility -s "SARG report, date" "output_email" < "mail_content"
In the above command, mail_utility
is the full text configured in the mail_utility option. Therefore, it is possible to add more arguments to the command by specifying them here.
The mail_utility
command receives two parameters. The first one is -s "SARG report, date"
where date
is the report date. It is intended as the mail subject. The second argument is the destination e-mail address given to output_email.
The mail content is passed to the command through its standard input.
If you need to, you can make the mail_utility option call a shell script of your own creation. That shell script can process the content of /dev/stdin (/dev/stdin is the mail_content
passed to the script by sarg) and call whatever command you like with any argument not supported by sarg. This tool is not limited to mailing the report via SMTP.
Don't forget to quote the command if necessary (i.e. if the path contains characters that must be quoted).
Default value is mailx
.
Discussion: Sending email
Wiki: Configuration options
Wiki: Table of content