Skip to content

Commit 7e00028

Browse files
authored
Changed sendEmail to mail
1 parent cc5c9b4 commit 7e00028

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

monitor.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ for (( ; ; )); do
99
curl $URL -L --compressed -s > new.html
1010
DIFF_OUTPUT="$(diff new.html old.html)"
1111
if [ "0" != "${#DIFF_OUTPUT}" ]; then
12-
sendEmail -f $USERNAME -s smtp.gmail.com:587 \
13-
-xu $USERNAME -xp $PASSWORD -t $USERNAME \
12+
mail \
13+
-t $USERNAME \
1414
-o tls=yes -u "Web page changed" \
15-
-m "Visit it at $URL"
16-
sleep 10
15+
-m 'Visit it at <a href="$URL">$URL</a>'
16+
sleep
1717
fi
1818
done

0 commit comments

Comments
 (0)