diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 5272191..826fa1a 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -459,7 +459,7 @@ function SendEmail { local auth_string= if [ ! -f "$attachment" ]; then - attachment_command="-a $ALERT_LOG_FILE" + attachment_command="-a $attachment" mail_no_attachment=1 else mail_no_attachment=0