You rule.  Thanks, I've been using "mail" in my scripts for some time,
but as I can see, directly invoking sendmail is MUCH more flexible.

Thanks again.

Vinny

> -----Original Message-----
> From: Cameron Simpson [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, December 04, 2001 6:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Command-line mail syntax for bash script
> 
> 
> On Tue, Dec 04, 2001 at 12:47:20PM -0600, Vinny Valdez 
> <[EMAIL PROTECTED]> wrote:
> | I have a quick question, I'm sure the answer is simple.
> | 
> | I want to do the following:
> | 
> | 1. send an email to a list through a bash script (no 
> interaction) 2. 
> | hide the recepients (bcc) 3. be able to alter the from: address (or 
> | set a reply-to), to listoperator@domain instead of 
> [EMAIL PROTECTED]
> 
> It is better to keep the From: fairly valid (it's only 
> polite) and modify the Reply-To:.
> 
> | I normally use "mail" to accomplish this, but I cannot 
> figure out how 
> | to do last one.
> | 
> | I have:
> | 
> | echo "text" | mail root -b list@domain -s subject
> 
> Go straight for sendmail:
> 
>       ( echo "From: [EMAIL PROTECTED]"
>         echo "To: [EMAIL PROTECTED]"
>         echo "Bcc: [EMAIL PROTECTED], [EMAIL PROTECTED]"
>         echo "Subject: whatever"
>         echo "Reply-To: [EMAIL PROTECTED]"
>         echo
>         cat message-file
>       ) | sendmail -oi -t
> 
> All the other programs (mail, mutt etc) as just going to be 
> calling sendmail anyway...
> -- 
> Cameron Simpson, DoD#743        [EMAIL PROTECTED]    
> http://www.zip.com.au/~cs/
> 
> What the hell, it's only 4 
> month's grant - I can live in a cardboard box, and catch 
> pigeons for food. After all, I've got raytracing to do!
>       - [EMAIL PROTECTED]
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED] 
> https://listman.redhat.com/mailman/listinfo/re> dhat-list
> 



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

Reply via email to