# uses smtpclient (mail) to send a gpg encrypted message
#

if [ $# -lt 2 ]
then
	echo "usage:"
	echo '	   gpgmail filename dest@dest.com [alternate dest key]'
	exit 1	
fi

gpg -qea --cipher-algo 3des -o /tmp/message.pgp -r $2 --openpgp --always-trust $1
mail $2 < /tmp/message.pgp
rm /tmp/message.pgp


