代码 :
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.