added second recipient
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#!/bin/bash
|
||||
mail="From: sockenklaus@gmail.com\n\
|
||||
To: pascalkoenig@duck.com\n\
|
||||
|
||||
from="sockenklaus@gmail.com"
|
||||
rcpt="pascalkoenig@duck.com;sandra.suehl@web.de"
|
||||
|
||||
mail="From: $from\n\
|
||||
To: $rcpt\n\
|
||||
Subject: wohn-hh.de changed\n\
|
||||
\n\
|
||||
Visit: http://wohn-hh.de"
|
||||
@@ -12,9 +16,10 @@ if [ -f "old.html" ]; then
|
||||
old=$(<old.html)
|
||||
|
||||
if [[ "$old" != "$new" ]]; then
|
||||
curl -s --url 'smtps://smtp.gmail.com:465' \
|
||||
--ssl-reqd --mail-from 'sockenklaus@gmail.com' \
|
||||
curl --url 'smtps://smtp.gmail.com:465' \
|
||||
--ssl-reqd --mail-from "$from" \
|
||||
--mail-rcpt 'pascalkoenig@duck.com' \
|
||||
--mail-rcpt 'sandra.suehl@web.de' \
|
||||
--user 'sockenklaus@gmail.com:gkrybqzhzkkggbrh' \
|
||||
-T <(echo -e "$mail")
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user