updated diagnostics for sent email or not

This commit is contained in:
2022-01-27 19:25:49 -05:00
parent a8d25c782b
commit c5cf597418

View File

@@ -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