updated diagnostics for sent email or not
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user