Bash script to monitor and email when a application stops

Usage: monitor.sh PID MESSAGE EMAIL_ADDRESS

#!/bin/bash

while [ -e /proc/$1 ]
do
  sleep 1
done
mail -s "$2" $3 < /dev/null