fix for sample mail.sh