chiark / gitweb /
Parallelise
[post-pizza-notify.git] / via-email
1 #!/bin/bash
2 #
3 # recipient format:
4 #    email ADDRESS1@DOMAIN ADDRESS2@DOMAIN...
5 # as many as you like on one line
6
7 msg="$1"; shift
8 rcpts="$*";
9 ssh -vt ijackson@tunnel.chiark.greenend.org.uk \
10  /usr/lib/sendmail -oem -odb -oi -t <<END
11 To: Post-pizza email people:;
12 Bcc: ${rcpts// /, }
13 Subject: $msg
14 User-Agent: post-pizza notification robot
15
16 $msg
17
18 -- 
19 $PIZZANOTIFY_name using the post-pizza notify.git script
20 END