无法使用电子邮件 mailutils(sendmail 关键字)从 linux ubuntu : 20.04 发送带有附件的邮件

无法使用电子邮件 mailutils(sendmail 关键字)从 linux ubuntu : 20.04 发送带有附件的邮件

代码 :

subject="Service resilience service status"
body="Service is down"
from="[email protected]"
to="[email protected]"
attachment="/home/ubuntu/ServiceResilience/log1.log"
echo -e "Subject:${subject}\n${body}" | sendmail -f "${from}" -t "${to}" -a "${attachment}"
echo "Mail sent succesfully"

错误:我收到:

STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message.

相关内容