add mime-header to mail
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 17s
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 17s
This commit is contained in:
@@ -94,7 +94,22 @@ EOF
|
|||||||
echo "$CLEAN_JSON" > "$STATE_FILE"
|
echo "$CLEAN_JSON" > "$STATE_FILE"
|
||||||
|
|
||||||
if [ -n "$UPDATES_FOUND" ]; then
|
if [ -n "$UPDATES_FOUND" ]; then
|
||||||
echo -e "Subject: Watchdog Alert\n\n$UPDATES_FOUND" | timeout 30s msmtp "$EMAIL_TO"
|
echo " 📧 Sende Benachrichtigung an $EMAIL_TO..."
|
||||||
|
|
||||||
|
(
|
||||||
|
echo "To: $EMAIL_TO"
|
||||||
|
echo "Subject: Watchdog Alert"
|
||||||
|
echo "Content-Type: text/plain; charset=utf-8"
|
||||||
|
echo "Content-Transfer-Encoding: 8bit"
|
||||||
|
echo ""
|
||||||
|
echo -e "$UPDATES_FOUND"
|
||||||
|
) | timeout 30s msmtp "$EMAIL_TO"
|
||||||
|
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo " ✅ E-Mail erfolgreich versendet."
|
||||||
|
else
|
||||||
|
echo " ❌ E-Mail Versand fehlgeschlagen!"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Check beendet. Nächster Scan in $INTERVAL s."
|
echo "Check beendet. Nächster Scan in $INTERVAL s."
|
||||||
|
|||||||
Reference in New Issue
Block a user