hello. I want to recieve the output by email. is this possible?
thanks.
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
Sure,
Edit CUSTOM/CLIENT/WINDOWS/SCRIPT.CONF. Point to the script that does the job:
CUSTOM/CLIENT/WINDOWS/Script-EmailReport.sh &
Create the script CUSTOM/CLIENT/WINDOWS/Script-EmailReport.sh with:
SMTP_SERVER="YOUR_SERVER" FROM=BGINFO4X SUBJECT=BGINFO4X_Report TO="DESTINATION_ADDRESS@domain" ATTACHI="-attachi $HOME\BGINFO4X\EXPORT\BGINFO4Xdiv.html"
/BGBINARIES/blat/blat.exe -server $SMTP_SERVER -f $FROM -subject $SUBJECT -to $TO -html -body "Your Report" $ATTACHI
Execute BGINFO4X and after the execution you will receive the email.
Enjoy!
Hope this helps.
Regards.
hello.
I want to recieve the output by email.
is this possible?
thanks.
Sure,
Edit CUSTOM/CLIENT/WINDOWS/SCRIPT.CONF. Point to the script that does the job:
CUSTOM/CLIENT/WINDOWS/Script-EmailReport.sh &
Create the script CUSTOM/CLIENT/WINDOWS/Script-EmailReport.sh with:
!/bin/bash
SMTP_SERVER="YOUR_SERVER"
FROM=BGINFO4X
SUBJECT=BGINFO4X_Report
TO="DESTINATION_ADDRESS@domain"
ATTACHI="-attachi $HOME\BGINFO4X\EXPORT\BGINFO4Xdiv.html"
/BGBINARIES/blat/blat.exe -server $SMTP_SERVER -f $FROM -subject $SUBJECT -to $TO -html -body "Your Report" $ATTACHI
Execute BGINFO4X and after the execution you will receive the email.
Enjoy!
Hope this helps.
Regards.