diff --git a/ubiquiti_stock.sh b/ubiquiti_stock.sh index c3356e3..12a1cda 100644 --- a/ubiquiti_stock.sh +++ b/ubiquiti_stock.sh @@ -25,7 +25,7 @@ echo "Inventory Quantity: ${INVENTORY_QUANTITY}" | tee -a "${LOG_FILE}" if [[ "${INVENTORY_QUANTITY}" -gt "0" ]]; then MESSAGE="There are currently ${INVENTORY_QUANTITY} ${NAME} in stock. ${URL}" echo "Message: ${MESSAGE}" | tee -a "${LOG_FILE}" - echo "${MESSAGE}" | mailx -r "stockalerts@johnhgaunt.com" --set smtp="smtp.home.johnhgaunt.com:25" ${EMAIL} + echo "${MESSAGE}" | mailx -r "stockalerts@johnhgaunt.com" --set smtp="smtp.home.johnhgaunt.com:25" "${EMAIL}" echo "Email sent" | tee -a "${LOG_FILE}" else echo "Not sending email" | tee -a "${LOG_FILE}"