forked from tilderadio/radiobot
fix sending email
This commit is contained in:
parent
744a206c07
commit
e2ee8d4c97
4
bot.sh
4
bot.sh
|
@ -64,11 +64,11 @@ do
|
|||
msg "$subscriber" "$dj is now online playing $now_playing! tune in now here: $link"
|
||||
done 10< subscribers.txt
|
||||
|
||||
while IFS= read -r -u 11 subscriber email_addr; do
|
||||
while read -r -u 11 subscriber email_addr; do
|
||||
sed -e "s/<dj>/$dj/g" \
|
||||
-e "s|<link>|$link|g" \
|
||||
-e "s/<now_playing>/$now_playing/g" \
|
||||
-e "s/<email_addr>/$email_addr/g" dj-online-email.tmpl \
|
||||
-e "s/<email_addr>/$subscriber <$email_addr>/g" dj-online-email.tmpl \
|
||||
| sendmail "$email_addr"
|
||||
done 11< email-subscribers.txt
|
||||
|
||||
|
|
Loading…
Reference in New Issue