fix sending email

This commit is contained in:
Ben Harris 2020-06-27 15:21:16 -04:00
parent 744a206c07
commit e2ee8d4c97
1 changed files with 2 additions and 2 deletions

4
bot.sh
View File

@ -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