chiark / gitweb /
9ae22ea810401f51df1957d5eca84dd505bddfce
[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: ${rcpts// /, }
12 Subject: $msg
13 User-Agent: post-pizza notification robot
14
15 $msg
16
17 -- 
18 $PIZZANOTIFY_name using the post-pizza notify.git script
19 END