On Tue, Oct 17, 2000 at 11:30:25PM -0400, Anthony E . Greene wrote:
| 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.

Or just put the addrs on the sendmail line:

        scriptname | /usr/sbin/sendmail -oi addr1 addr2 ...

and drop the -t. Depends how you want the mail to look. With -t, the
addrs come from the headers. Without you can put whatever you like as
the To: in the headers. The latter is how many UNIX mailers dispatch
their email, which is why you can have a personal alias and have it
survive in the To: line (not that I recommend that - that generally is
meaningless to the recipient and often acquires the target domain
during reception - generally undesirable).
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

An ambassador is a man of virtue sent to lie abroad for his country; a news-
writer is a man without virtue who lies at home for himself.
        - Sir Henry Wotton, Reliquae Wottonianae



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

Reply via email to