add mime-header to mail
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 17s

This commit is contained in:
2026-02-08 14:50:41 +01:00
parent e73ff953ea
commit 8fec8059f9

View File

@@ -94,7 +94,22 @@ EOF
echo "$CLEAN_JSON" > "$STATE_FILE"
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
echo "Check beendet. Nächster Scan in $INTERVAL s."