On Mon, 16 Oct 2000 18:04 Bryan K. wrote:
>I need to send mail to multiple Bcc recipients from a script. But, the
>from address needs to be different than the user who is sending it.
>Basically this is for a virtual domain, so it needs to send from
>[EMAIL PROTECTED] but the From address needs to be
>[EMAIL PROTECTED] How can I do this?

Have the script output a fully formatted message, including the headers,
with a blank line between the headers and the body. Pipe the output to
sendmail like this:

  scriptname | /usr/sbin/sendmail -oi -t

The "-t" option tells sendmail to read the addresses from the input data.
-- 
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Chat:  AOL/Yahoo: TonyG05    ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to