Subject: Re: maybe OT: sendmail subject
To: None <vodka@intoxicate.us>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 07/18/2002 09:58:20
In message <1830.192.168.1.2.1026953732.squirrel@www.asper.org>, vodka@intoxica
te.us writes:
>I need to be able to specify a subject and a "from".  I need to use -F and
>-f that sendmail has.  I don't think there's a way to sepcify a "from"
>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>
>
>The from mail address will be external to the system, that is, it's not
>the same user/domain of the system.
>
>Thanks
>
>> Use the mail(1) command. Or pipe the "Subject:" into sendmail.
>>
>> If you need more help, show us what you are trying to do ...
>
>
>
>
cat <<EOF | sendmail -bt
From: Root
Subject: something
To: $user

Data
EOF


		--Steve Bellovin, http://www.research.att.com/~smb (me)
		http://www.wilyhacker.com ("Firewalls" book)