From c5cf59741858314b24e162320b3aef413e515e10 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Thu, 27 Jan 2022 19:25:49 -0500 Subject: [PATCH] updated diagnostics for sent email or not --- ubiquiti_stock.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ubiquiti_stock.sh b/ubiquiti_stock.sh index 2a74d78..d434a88 100644 --- a/ubiquiti_stock.sh +++ b/ubiquiti_stock.sh @@ -19,4 +19,7 @@ echo "Inventory Quantity: ${INVENTORY_QUANTITY}" if [[ "${INVENTORY_QUANTITY}" -gt "0" ]]; then MESSAGE="There are currently ${INVENTORY_QUANTITY} ${NAME} in stock. ${URL}" echo "${MESSAGE}" | mailx -r "stockalerts@johnhgaunt.com" --set smtp="smtp.home.johnhgaunt.com:25" ${PHONE_NUMBER}@vtext.com + echo "Email sent" +else + echo "Not sending email" fi \ No newline at end of file