我在linux中有以下脚本。电子邮件正在发送但附件没有附加。即使我给出错误文件的正确路径它也不起作用。请帮忙
由于
ERROR_FILE="error1.txt"
SEND_EMAIL()
{
email_recipient=xyz@company.com
( echo "From: abc@company.com"
echo "To: "${email_recipient}""
echo "Subject: Some errors are on this process check log for
more details"
cat ${ERROR_FILE} ) | /usr/lib/sendmail -i -t
2> /dev/null
}
SEND_EMAIL