Re: send a mail with copies only with shell
On 25 mar, 17:28, Glenn Jackman <gle...@ncf.ca> wrote:
> At 2008-03-25 07:17PM, "someusernamehere" wrote:
>
> > There is a way for send mails only with shell commands?, I mean I know
> > how to send with mutt -c u...@copy.com -s "subject" u...@foo.bar
> > its possibly only with sendmail or whatever send a mail with:
>
> > * a desired subject (foobar for example)
> > * a Carbon copy (Cc) destinator
> > * a shadow copy (Bc) destinator
> > * reading the content of a file for the body (e.g. /home/user/foo.txt)
>
> ( printf "Subject: %s\nCc: %s\nBcc: %s\n\n" "$sub" "$cc" "$bcc"
> cat "$filename"
> ) | /usr/lib/sendmail -t -oi
oh, thanks it works, but the original recipent is missing how to put
them into?
P.S. I dont want to use mutt ;-)
many thanks
|