Mate Wierdl <[EMAIL PROTECTED]> writes:

> use mailsubj as
> mailsubj foo bar < file.you.want.to.mail
> See man page for mailsubj.

I'd recommend also reading mailsubj, since it's just a shell script.  You
can then keep using it, knowing that you know what it's doing and you
could do it yourself if you want.

FWIW, the most portable solution across a variety of MTAs is probably to
open a pipe to "/usr/lib/sendmail -t -oi -oem" and feed it the entire mail
message including headers, putting the recipient addresses in the header.
There are more efficient ways using the native programs with most MTAs,
including qmail, but pretty much everyone has to be sendmail-compatible so
that works most everywhere.  (With the caveat that you may need to change
/usr/lib to /usr/sbin on some platforms.)

-- 
Russ Allbery ([EMAIL PROTECTED])         <URL:http://www.eyrie.org/~eagle/>

Reply via email to