0 Replies Latest reply on Sep 12, 2016 3:10 AM by acik

    Send email to multiple recipients (for i in ${EMAIL_TO}; do in line 1342)

    acik Lurker

      In ghettoVCB.sh there are some commented lines that can be used to send logs to multiple recipients.

      Why are that lines commented ??

      Someone tried to use them with luck ??


      #for i in ${EMAIL_TO}; do
      #    buildHeaders ${i}
      #    cat "${EMAIL_LOG_CONTENT}" |while read L; do sleep "${EMAIL_DELAY_INTERVAL}"; echo $L; done | "${NC_BIN}" "${EMAIL_SERVER}" "${EMAIL_SERVER_PORT}" > /dev/null 2>&1
      #    #"${NC_BIN}" -i "${EMAIL_DELAY_INTERVAL}" "${EMAIL_SERVER}" "${EMAIL_SERVER_PORT}" < "${EMAIL_LOG_CONTENT}" > /dev/null 2>&1
      #    if [[ $? -eq 1 ]] ; then
      #        logger "info" "ERROR: Failed to email log output to ${EMAIL_SERVER}:${EMAIL_SERVER_PORT} to ${EMAIL_TO}\n"
      #    fi