Hi,
Is there any way to check the status of the mail sent or not.e.g
mail -s "Error Message" abc@xyz.com <aaa/bbb/data.txt
Can it return a status code which will confirm the delivery of mail sent?Please suggest.
Thanks,
Anil
Hi,
Is there any way to check the status of the mail sent or not.e.g
mail -s "Error Message" abc@xyz.com <aaa/bbb/data.txt
Can it return a status code which will confirm the delivery of mail sent?Please suggest.
Thanks,
Anil
i dont think it sends an exist code. but you can check it.
mail -s "Error Message" abc@xyz.com <aaa/bbb/data.txt
if [[ $? -eq 0 ]]
then
echo "mail was not sent properly"
fi