Subject: Re: maybe OT: sendmail subject
To: None <netbsd-users@netbsd.org>
From: David S. <davids@idiom.com>
List: netbsd-users
Date: 07/17/2002 18:09:54
> field in mail(1).  Basically I want something like:
> 
> echo "account has been created and is ready to use" | mail -subject
> "Account Information" -from "User Services" <my@email.address>

	echo "account has been created and is ready to use" \
		| mailx -s "Account Information" <user address> \
			-f"User Services <my@email.address>"

The "-s" flag is as per the 'mailx' man page; the "-f" flag is the
'sendmail' flag.  You can pass arguments to 'sendmail' by placing
them after the 'mailx' flags/options.

David S.

>