Email need to be triggered

hi,

Currently, in my code, the errors are written in log file.

Additionally, i need to trigger the email of error captured. can we modify this script with email triggered along with existing command.

echo "ERROR: $SCRIPT: $*" >>$LOGFILE

yes, "we" can.
Take a look at the suggested forum posts at the bottom of this thread.