#!/bin/sh
: ${1?}
# $Id: fmsendreg,v 1.3 1993/01/05 14:37:12 sbs Exp $
# Copyright (c) 1992-1993 Frame Technology Corp. All rights reserved.
#
# fmsendreg
#
# Send the standard input as a mail message to the recipient
# named by $1.
#
if [ -x /usr/ucb/Mail ]; then
	mailer='/usr/ucb/Mail -n'
elif [ -x /usr/ucb/mail ]; then
	mailer='/usr/ucb/mail -n'
elif [ -x /usr/bin/mailx ]; then
	mailer=/usr/bin/mailx
elif [ -x /usr/bin/mail ]; then
	mailer=/usr/bin/mail
elif [ -x /bin/mail ]; then
	mailer=/bin/mail
else
	echo "$0: Cannot find appropriate mailer!" >&2
	exit 1
fi

MAILRC=/dev/null exec $mailer $1
